Semiconductor integrated circuit and operating method thereof

ABSTRACT

Disclosed are a semiconductor integrated circuit including first and second supply terminals; an input voltage selection circuit including a power-on reset circuit, an input voltage detection circuit, a control circuit and a power-on reset auxiliary circuit; and first and second power supply switches, and its operating method. When the above detection circuit detects the supply of both first and second power supply voltages to both supply terminals upon completion of a power on reset operation of the reset circuit, the control circuit controls either of both power supply switches, having a high priority of preset priorities, to an on state. After its control, the auxiliary circuit detects a power failure in the power supply voltage supplied to the high-priority power supply switch. The reset circuit performs another power on reset operation. The control circuit controls the power supply switch having a low priority of the priorities to an on state.

CROSS-REFERENCE TO RELATED APPLICATIONS

The disclosure of Japanese Patent Application No. 2012-120697 filed on May 28, 2012 including the specification, drawings and abstract is incorporated herein by reference in its entirety.

BACKGROUND

The present invention relates to a semiconductor integrated circuit and an operating method thereof and particularly to a technology effective in implementing an automatic selection used to select again a power supply to be used out of a plurality of power supplies in response to an electric power failure.

As has been described in, for example, each of the following Patent Documents 1 and 2, an IC card is equipped with a semiconductor integrated circuit and an antennal coil, and the supply of power to the IC card is performed by receiving an RF signal outputted from a reading/writing device called a card reader/car writer by the antenna coil and rectifying the same by a rectifier circuit. Thus, the IC card having no power supply on its card side is becoming pervasive in an automatic ticket system, e-cash, logistics management, etc. Thus, since the IC card is RF-power supplied and on the other hand, unique identification information (ID information) has been stored in a built-in non-volatile memory, it is called an RFID card.

On the other hand, a wireless power delivery system has been in widespread use which is called “just-to-place charging” in which a portable device such as a smart phone is simply placed in a dedicated charging table without coupling the portable device to a power supply cable to thereby enable the charging of the portable device. This type of wireless power delivery system intends to cope with the fact that the battery drain of the cellular phone called “smart phone” is large. That is, the smart phone is a multifunction cellular phone having a high affinity to Internet and based on the functions of a personal computer, or a multifunction cellular phone with a PDA function added to a phone/mail, which may be abbreviated as “smapho” or “smaho”. The wireless power delivery system is based on the international standard called Qi (chi) established by Wireless Power Consortium (WPC) of the industry group. Both of a transmission side device and a reception side device are respectively provided with coils to thereby enable the supply of power from the transmission side device to the reception side device by an electromagnetic induction system. The advantages of the wireless power delivery system are that there is no need to plug or unplug a power connector for charging and the operation of opening and closing a connector cover for a power connector of a portable device in particular can be omitted.

Further, it has been described in the following Patent Document 3 that in an electronic device selectively coupled to two or more types of power supplies to charge a battery, a controller is used to couple the electronic device to another power supply soon when the coupling to the power supply subjected to the supply of power is released, to thereby start the charging of the battery. That is, the control provided by the controller resides in that the battery is charged by an AC power supply while current is being supplied from the AC power supply to an AC coupling part, whereas while current is being supplied from an external device to an external device coupling part without the supply of current from the AC power supply to the AC coupling part, the battery is charged by the power supply of the external device. When the external device coupling part is coupled to the external device while the battery is being charged by the AC power supply, the controller particularly performs an initial communication with the external device to thereby conduct charge settings necessary to charge the battery through the external device. Specifically, the external device coupling part is a USB coupling part, and an interface of another standard such as IEEE1394 or the like can also be adopted. Since the current from the AC power supply is larger than that from the external device when the electronic device is coupled to both of the AC power supply and the external device, the controller serves to charge the battery through the AC power supply.

There has been described in the following Patent Document 4, a power switch IC in which a source-to-drain path of a first N channel power MOS transistor is coupled between first input and output terminals, a source-to-drain path of a second N channel power MOS transistor is coupled between second input and output terminals, and a source-to-drain path of a third N channel power MOS transistor is coupled between third input and output terminals. A drain-to-source path of a third MOS transistor is coupled between the gate of the third N channel power MOS transistor and a ground potential. A drain-to-source path of a fourth MOS transistor is coupled between the gate of the second N channel power MOS transistor and the ground potential. A drain-to-source path of a fifth MOS transistor is coupled between the gate of the first N channel power MOS transistor and the ground potential. A first input terminal is coupled an input terminal of a first inverter circuit and an input terminal of a second inverter circuit. A second input terminal and a third input terminal are coupled to a power supply terminal of the first inverter circuit and a power supply terminal of a second inverter circuit respectively. An output terminal of the first inverter circuit is coupled to the gate of the third MOS transistor. An output terminal of the second inverter circuit is coupled to the gate of the fourth MOS transistor. The output terminal of the first inverter circuit and the output terminal of the second inverter circuit are coupled to two input terminals of a two-input NOR gate circuit. Further, an output terminal of the two-input NOR gate circuit is coupled to an input terminal of a third inverter circuit. An output terminal of the third inverter circuit is coupled to the gate of the fifth MOS transistor. When the potential of the first input terminal is reduced due to the occurrence of a malfunction, the output terminal of the first inverter circuit, the output terminal of the second inverter circuit and the output terminal of the third inverter circuit become high in level, so that the third MOS transistor, the fourth MOS transistor and the fifth MOS transistor are respectively brought to an on state. Accordingly, all the power MOS transistors of the first N channel power MOS transistor coupled between the first input and output terminals, the second N channel power MOS transistor coupled between the second input and output terminals, and the third N channel power MOS transistor coupled between the third input and output terminals are controlled to an off state respectively.

RELATED ART DOCUMENTS Patent Document

-   [Patent Document 1] Japanese Unexamined Patent Publication Laid-Open     No. 2009-4949 -   [Patent Document 2] Japanese Unexamined Patent Publication Laid-Open     No. 2010-9353 -   [Patent Document 3] Japanese Unexamined Patent Publication Laid-Open     No. 2011-155830 -   [Patent Document 4] Japanese Unexamined Patent Publication Laid-Open     No. 2006-180226

SUMMARY

Prior to the present invention, the present inventors have been involved in the development of a semiconductor integrated circuit for battery charging control, which is capable of operation by a plurality of power supply voltages of an AC-DC power supply voltage generated by rectification/smoothing of an AC power supply voltage from an AC power supply, a USB power supply voltage from USB coupling, and a power supply voltage based on a wireless power delivery of the above wireless power delivery system.

In the process of its development, the present inventors have discussed the method of charging the battery by the power supplies described in the Patent Document 3. According to the discussion made by the present inventors, however, there has been revealed a problem that an implementation method for automatically selecting a used power supply in accordance with the presence or absence of the supply of a plurality of power supplies has not been described in the Patent Document 3. That is, the semiconductor integrated circuit for the battery charging control, which is capable of operation by the power supply voltages described above, needs to implement an electronic circuit that automatically selects a power supply to be used from a plurality of power supplies.

Further, it has been revealed by the discussion of the present inventors in the process of this development that the system described in the above Patent Document 4 is not capable of automatically selecting a power supply to be used out of a plurality of power supplies.

Prior to the present invention, the present inventors have discussed a system which implements an electronic circuit that automatically selects a power supply to be used out of a plurality of power supplies by using a power-on reset circuit, an input voltage detection circuit and a control circuit. The control circuit that controls a first power supply switch for selecting a first power supply voltage and a second power supply switch for selecting a second power supply voltage is reset by a power on reset operation of the power-on reset circuit responsive to at least either of the first power supply voltage and the second power supply voltage. The input voltage detection circuit detects the presence or absence of supply of the first power supply voltage and the presence or absence of supply of the second power supply voltage in response to the end of the power on reset operation. When, while the input voltage detection circuit detects the supply of the first power supply voltage, the input voltage detection circuit detects the non-supply of the second power supply voltage, the control circuit controls the first power supply switch and the second power supply switch to an on state and an off state respectively. On the contrary, when, while the input voltage detection circuit detects the supply of the second power supply voltage, the input voltage detection circuit detects the non-supply of the first power supply voltage, the control circuit controls the first power supply switch and the second power supply switch to an off state and an on state respectively. Further, when the input voltage detection circuit detects both of the supply of the first power supply voltage and the supply of the second power supply voltage, the control circuit controls one of the first power supply switch and the supply of the second power supply switch and the other thereof to an on state and an off state respectively in accordance with the order of precedence set to the control circuit in advance.

Prior to the present invention, the present inventors have discussed the above system in further detail. As a result, the present inventors have revealed a problem that when, for example, a power failure in the first power supply voltage set to a higher priority after the input voltage detection circuit has detected both of the supply of the first power supply voltage and the supply of the second power supply voltage, a malfunction occurs in the automatic selection of the power supply to be used from the power supplies. That is, it is necessary to carry out an automatic selection made to select again a power supply to be used out of the power supplies in response to the power failure. To this end, however, there is a need to perform again the power on rest operation of the power-on reset circuit in response to the power failure. The above system discussed prior to the present invention by the present inventors has a problem in that the power on reset operation of the power-on reset circuit is imperfectly performed in response to the above power failure, thus resulting in a difficulty in performing the automatic selection made to select again the used power supply out of the power supplies in response to the power failure.

While means and the like for solving such problems are described below, other objects and novel features of the present invention will become apparent from the description of the present specification and the accompanying drawings.

A summary of a representative embodiment disclosed in the present application will be explained in brief as follows:

A semiconductor integrated circuit (212) according to a typical embodiment is equipped with a first supply terminal (T1) capable of supplying a first power supply voltage, a second supply terminal (T2) capable of supplying a second power supply voltage, an input voltage selection circuit (2124), a first power supply switch (SW1, SW2) and a second power supply switch (SW3) (refer to FIG. 2).

The input voltage selection circuit (2124) includes a power-on reset circuit (21244), an input voltage detection circuit (21248), a control circuit (21245, 21246) and a power-on reset auxiliary circuit (2124X) (refer to FIG. 6).

When the input voltage detection circuit detects the supply of either of the first and second power supply voltages to either of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, the control circuit controls either of the first and second power supply switches, corresponding to the supply terminal at which the above supply has been detected, to an on state.

When the input voltage detection circuit detects the supply of both of the first and second power supply voltages to both of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, the control circuit controls either of the first and second power supply switches, having a high priority of priorities set in advance, to an on state.

After the power supply switch having the high priority has been controlled to the on state, the power-on reset auxiliary circuit (2124X) detects a power failure in the power supply voltage supplied to the power supply switch having the high priority, of the first and second power supply voltages.

The power-on reset circuit performs another power on reset operation in response to a result of detection of the power failure by the power-on reset auxiliary circuit (2124X).

At the end of another power on reset operation of the power-on reset circuit, the control circuit controls either of the first and second power supply switches, having a low priority of the priorities set in advance, to an on state (refer to FIG. 6).

An advantageous effect obtained by a typical one of embodiments disclosed in the present application will be explained in brief as follows:

According to the present semiconductor integrated circuit (212), an automatic selection made to select again a power supply to be used out of a plurality of power supplies in response to a power failure can be implemented.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram showing a configuration of a multifunction cellular phone equipped with a semiconductor integrated circuit 212 for battery charging control, according to a first embodiment;

FIG. 2 is a diagram illustrating a configuration of the semiconductor integrated circuit 212 for the battery charging control, according to the first embodiment shown in FIG. 1;

FIG. 3 is a diagram depicting functions of external terminals of the semiconductor integrated circuit 212 for the battery charging control, according to the first embodiment shown in FIG. 2;

FIG. 4 is a diagram showing a configuration of an input voltage detection circuit 2124 for the selection of an operation mode at start-up of a semiconductor integrated circuit 212 discussed by the present inventors prior to the present invention as a comparative reference example of the present invention;

FIG. 5 is a diagram showing waveforms of respective parts of the input voltage detection circuit 2124, for describing the operation of the input voltage detection circuit 2124 according to the comparative reference example of the present invention shown in FIG. 4;

FIG. 6 is a diagram illustrating a configuration of an input voltage detection circuit 2124 for the selection of an operation mode at start-up of the semiconductor integrated circuit 212 for the battery charging control, according to the first embodiment shown in FIG. 2;

FIG. 7 is a diagram showing waveforms of respective parts of the input voltage detection circuit 2124, for explaining the operation of the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6;

FIG. 8 is a diagram depicting waveforms of the respective parts of the input voltage detection circuit 2124 at an electric power failure in a USB power delivery where the priority of the USB power delivery is set higher than the priority of a wireless power delivery inside a control logic circuit 21245 of the input voltage detection circuit 2124 of the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2;

FIG. 9 is a diagram illustrating the operation of automatically selecting a power supply to be used out of a plurality of power supplies by the semiconductor integrated circuit 212 according to the first embodiment shown in FIGS. 2 and 4; and

FIG. 10 is a diagram depicting the operation of automatically selecting a power supply to be used out of a plurality of power supplies by the semiconductor integrated circuit 212 according to a second embodiment shown in FIGS. 2 and 4.

DETAILED DESCRIPTION 1. Summary of the Embodiments

A summary of typical embodiments of the invention disclosed in the present application will first be explained. Reference numerals of the accompanying drawings referred to with parentheses in the description of the summary of the typical embodiments only illustrate elements included in the concept of components to which the reference numerals are given.

[1] A semiconductor integrated circuit (212) according to a typical embodiment is equipped with a first supply terminal (T1) capable of supplying a first power supply voltage, a second supply terminal (T2) capable of supplying a second power supply voltage, an input voltage selection circuit (2124) coupled to the first supply terminal and the second supply terminal, a first power supply switch (SW1, SW2) and a second power supply switch (SW3) (refer to FIG. 2).

The input voltage selection circuit (2124) includes a power-on reset circuit (21244), an input voltage detection circuit (21248), a control circuit (21245, 21246) and a power-on reset auxiliary circuit (2124X) (refer to FIG. 6).

When the input voltage detection circuit detects the supply of either of the first and second power supply voltages to either of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, the control circuit responsive to its detection controls either of the first and second power supply switches, corresponding to the supply terminal at which the above supply has been detected, to an on state.

When the input voltage detection circuit detects the supply of both of the first and second power supply voltages to both of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, the control circuit responsive to its detection controls either of the first and second power supply switches, having a high priority of priorities set in advance, to an on state.

After the power supply switch having the high priority has been controlled to the on state, the power-on reset auxiliary circuit (2124X) detects a power failure in the power supply voltage supplied to the power supply switch having the high priority, of the first and second power supply voltages.

The power-on reset circuit performs another power on reset operation in response to a result of detection of the power failure by the power-on reset auxiliary circuit (2124X).

At the end of another power on reset operation of the power-on reset circuit, the control circuit controls either of the first and second power supply switches, having a low priority of the priorities set in advance, to an on state (refer to FIG. 6).

According to the semiconductor integrated circuit (212) of the above embodiment, an automatic selection made to select again a power supply to be used out of a plurality of power supplies in response to a power failure can be implemented.

In a preferred embodiment, the power-on reset circuit (21244) generates a power on reset signal (POR) in response to the supply of the first power supply voltage to the first supply terminal (T1) and the supply of the second power supply voltage to the second supply terminal (T2).

The input voltage detection circuit (21248) generates a first voltage detection output signal (Vdet1) in response to the supply of the first power supply voltage to the first supply terminal (T1). The input voltage detection circuit (21248) generates a second voltage detection output signal (Vdet2) in response to the supply of the second power supply voltage to the second supply terminal (T2).

The control circuit (21245, 21246) controls the first power supply switch and the second power supply switch in response to the power on reset signal (POR), the first voltage detection output signal (Vdet1) and the second voltage detection output signal (Vdet2).

At a timing of a change in the level of the power on reset signal (POR) responsive to the end of a power on reset operation of the power-on reset circuit (21244), the input voltage detection circuit (21248) detects the supply of the first power supply voltage to the first supply terminal (T1) and the supply of the second power supply voltage to the second supply terminal (T2).

In a first case where at the timing of the change in the level of the power on reset signal, the input voltage detection circuit detects the supply of the first power supply voltage to the first supply terminal but does not detect the supply of the second power supply voltage to the second supply terminal, the control circuit controls the first power supply switch and the second power supply switch to an on state and an off state respectively after the end of the power on reset operation.

The first power supply switch controlled to the on state supplies the first power supply voltage supplied to the first supply terminal to a load (3, 26) by the control of the first power supply switch and the second power supply switch to the on state and the off state respectively after the end of the power on reset operation.

In a second case where at the timing of the change in the level of the power on reset signal, the input voltage detection circuit detects the supply of the second power supply voltage to the second supply terminal but does not detect the supply of the first power supply voltage to the first supply terminal, the control circuit controls the first power supply switch and the second power supply switch to an off state and an on state respectively after the end of the power on reset operation.

The second power supply switch controlled to the on state supplies the second power supply voltage supplied to the second supply terminal to the load (3, 26) by the control of the first power supply switch and the second power supply switch to the off state and the on state respectively after the end of the power on reset operation.

In a third case where at the timing of the change in the level of the power on reset signal, the input voltage detection circuit detects the supply of the first power supply voltage to the first supply terminal and the supply of the second power supply voltage to the second supply terminal, the control circuit controls one of the first power supply switch and the second power supply switch and the other thereof to an on state and an off state respectively after the end of the power on reset operation.

In the third case, the one of the first power supply switch and the second power supply switch and the other thereof are respectively controlled to the on state and the off state in accordance with the order of precedence set to the control circuit in advance.

The one thereof controlled to the on state, corresponding to the power supply switch having the high priority supplies the first power supply voltage or the second power supply voltage supplied to the first supply terminal or the second supply terminal to the load (3, 26).

In another preferred embodiment, the power-on reset auxiliary circuit includes first and second reference voltage generators (Ref_Gen3, 4), first and second differential amplifiers (DA3, 4) and first and second N channel MOS transistors (Mn1, 2).

The second power supply voltage supplied to the second supply terminal is supplied to the first reference voltage generator and the first differential amplifier as an operating power supply voltage. A first reference voltage generated from the first reference voltage generator is supplied to a non-inversion input terminal of the first differential amplifier. An inversion input terminal of the first differential amplifier is responsive to the first power supply voltage supplied to the first supply terminal.

A gate of the first N channel MOS transistor is driven by an output signal of the first differential amplifier. A source and drain of the first N channel MOS transistor are coupled to a ground potential and the power-on reset circuit respectively.

The first power supply voltage supplied to the first supply terminal is supplied to the second reference voltage generator and the second differential amplifier as an operating power supply voltage. A second reference voltage generated from the second reference voltage generator is supplied to a non-inversion input terminal of the second differential amplifier. An inversion input terminal of the second differential amplifier is responsive to the second power supply voltage supplied to the second supply terminal.

A gate of the second N channel MOS transistor is driven by an output signal of the second differential amplifier. A source and drain of the second N channel MOS transistor are coupled to the ground potential and the power-on reset circuit respectively.

In response to a reduction in the first power supply voltage due to a power failure in the first power supply voltage supplied to the first supply terminal in a state in which the second power supply voltage of the second supply terminal is supplied to the first reference voltage generator and the first differential amplifier as the operating power supply voltage, the output signal of the first differential amplifier controls the first N channel MOS transistor from an off state to an on state.

In response to the control of the first N channel MOS transistor to the on state with the power failure in the first power supply voltage supplied to the first supply terminal, the power-on reset circuit performs another power on reset operation.

In response to a reduction in the second power supply voltage due to a power failure in the second power supply voltage supplied to the second supply terminal in a state in which the first power supply voltage of the first supply terminal is supplied to the second reference voltage generator and the second differential amplifier as the operating power supply voltage, the output signal of the second differential amplifier controls the second N channel MOS transistor from an off state to an on state.

In response to the control of the second N channel MOS transistor to the on state with the power failure in the second power supply voltage supplied to the second supply terminal, the power-on reset circuit performs another power on reset operation (refer to FIG. 6).

A semiconductor integrated circuit (212) according to a further preferred embodiment further includes a first external output terminal (T4) and a second external output terminal (T3) which supply the first power supply voltage or the second power supply voltage to a first external load (3) and a second external load (26) taken as the load respectively.

The semiconductor integrated circuit (212) furthermore includes an output P channel MOS transistor (Mp0) coupled between the first external output terminal and the second external output terminal.

When either of the first power supply switch and the second power supply switch is controlled to an on state after the end of the power on reset operation, the output P channel MOS transistor (Mp0) is controlled to an on state by the control circuit (21245, 21246).

The control of the output P channel MOS transistor to the on state enables the first power supply voltage or the second power supply voltage to be supplied to the second external load through the output P channel MOS transistor and the second external output terminal (T3) (refer to FIGS. 2 and 6).

In yet another preferred embodiment, the first external output terminal (T4) is configured so as to be capable of supplying the first power supply voltage or the second power supply voltage to the first external load (3) corresponding to another semiconductor integrated circuit taken as an active device.

The output P channel MOS transistor and the second external output terminal are configured so as to be capable of supplying the first power supply voltage or the second power supply voltage to the second external load (26) taken as a battery (refer to FIG. 2).

In a still further preferred embodiment, the input voltage selection circuit (2124) further includes an input voltage selection switch (21242) and a gate drive circuit (21249).

The input voltage selection switch includes a first input P channel MOS transistor (Mp1) and a second input P channel MOS transistor (Mp2). A source of the first input P channel MOS transistor is coupled to the first supply terminal. A source of the second input P channel MOS transistor is coupled to the second supply terminal.

During a power on reset period of the power-on reset circuit (21244), the gate drive circuit (21249) controls both of the first and second input P channel MOS transistors of the input voltage selection switch to an on state.

During the power on reset period, an operating voltage (Vcc) supplied to the power-on reset circuit is generated from a drain of the first input P channel MOS transistor or a drain of the second input P channel MOS transistor (refer to FIG. 6).

In a still further preferred embodiment, in the case, the gate drive circuit controls the first and second input P channel MOS transistors of the input voltage selection switch to an on state and an off state respectively.

In the second case, the gate drive circuit controls the first and second input P channel MOS transistors of the input voltage selection switch to an on state and an off state respectively.

In the third case, the gate drive circuit controls one of the first and second input P channel MOS transistors of the input voltage selection switch and the other thereof to an on state and an off state respectively in accordance with the order of precedence set to the control circuit in advance (refer to FIG. 6).

In a still further preferred embodiment, the input voltage selection circuit (2124) further includes a voltage comparison/selection circuit (21243) having a first input terminal (Node1), a second input terminal (Node2) and an output terminal.

The first input terminal (Node1) of the voltage comparison/selection circuit is coupled to the drain of the first input P channel MOS transistor of the input voltage selection switch.

The second input terminal (Node2) of the voltage comparison/selection circuit is coupled to the drain of the second input P channel MOS transistor of the input voltage selection switch.

The operating voltage supplied to the power-on reset circuit is generated from the output terminal of the voltage comparison/selection circuit.

The voltage comparison/selection circuit compares a voltage of the first input terminal and a voltage of the second input terminal to select a high voltage and thereby outputs the high voltage as the operating voltage supplied from the output terminal to the power-on reset circuit (refer to FIG. 6).

In a still further preferred embodiment, with the occurrence of the first case, a fourth case in which the input voltage detection circuit (2124) detects the supply of the second power supply voltage to the second supply terminal occurs (FIG. 9: S910) after the first and second power supply switches are respectively controlled to the on state and the off state after the end of the power on reset operation (FIG. 9: S905).

In response to the occurrence of the fourth case, the control circuit controls the one of the first power supply switch and the second power supply switch and the other thereof to the on state and the off state respectively in accordance with the order of precedence set to the control circuit in advance, as with the third case (FIG. 9: S911).

With the occurrence of the second case, a fifth case in which the input voltage detection circuit (2124) detects the supply of the first power supply voltage to the first supply terminal occurs (FIG. 9: S912) after the first and second power supply switches are respectively controlled to the off state and the on state after the end of the power on reset operation (FIG. 9: S912).

In response to the occurrence of the fifth case, the control circuit controls the one of the first power supply switch and the second power supply switch and the other thereof to the on state and the off state respectively in accordance with the order of precedence set to the control circuit in advance, as with the third case (FIG. 9: S913).

With the occurrence of the third case, a sixth case in which the input voltage detection circuit (2124) detects the supply of the second power supply voltage to the second supply terminal occurs (FIG. 9: S914) after the one of the first and second power supply switches and the other thereof are respectively controlled to the on state and the off state after the end of the power on reset operation (FIG. 9: S919).

In response to the occurrence of the sixth case, the control circuit controls the one of the first power supply switch and the second power supply switch and the other thereof to the on state and the off state respectively in accordance with the order of precedence set to the control circuit in advance, as with the third case (FIG. 9: S915).

In a specific embodiment, with the occurrence of the first case, a fourth case in which the input voltage detection circuit (2124) detects the supply of the second power supply voltage to the second supply terminal occurs (FIG. 10: S1000) after the first and second power supply switches are respectively controlled to the on state and the off state after the end of the power on reset operation (FIG. 10: S905).

In response to the occurrence of the fourth case, the semiconductor integrated circuit is capable of notifying the occurrence of the fourth case to the above another semiconductor integrated circuit taken as the first external load (FIG. 8: S1001).

In response to a first notice indicative of the occurrence of the fourth case, the control circuit controls the first power supply switch and the second power supply switch in accordance with a first indication supplied from the above another semiconductor integrated circuit to the semiconductor integrated circuit (FIG. 10: S1001-S1002).

In accordance with the first indication, the control circuit controls the first power supply switch and the second power supply switch to an on state and an off state respectively (FIG. 10: S905) or controls the first power supply switch and the second power supply switch to an off state and an on state respectively (FIG. 10: S1002).

With the occurrence of the second case, a fifth case in which the input voltage detection circuit (2124) detects the supply of the first power supply voltage to the first supply terminal occurs (FIG. 10: S912) after the first and second power supply switches are respectively controlled to the off state and the on state after the end of the power on reset operation (FIG. 10: S907).

In response to the occurrence of the fifth case, the semiconductor integrated circuit is capable of notifying the occurrence of the fifth case to the above another semiconductor integrated circuit taken as the first external load (FIG. 10: S1003).

In response to a second notice indicative of the occurrence of the fifth case, the control circuit controls the first power supply switch and the second power supply switch in accordance with a second indication supplied from the above another semiconductor integrated circuit to the semiconductor integrated circuit (FIG. 10: S1004-S1005).

In accordance with the second indication, the control circuit controls the first power supply switch and the second power supply switch to an off state and an on state respectively (FIG. 10: S907) or controls the first power supply switch and the second power supply switch to an on state and an off state respectively (FIG. 10: S1005).

With the occurrence of the third case, a sixth case in which the input voltage detection circuit (2124) detects the supply of the second power supply voltage to the second supply terminal occurs (FIG. 10: S914) after the one of the first and second power supply switches and the other thereof are respectively controlled to the on state and the off state after the end of the power on reset operation (FIG. 10: S909).

In response to the occurrence of the sixth case, the semiconductor integrated circuit is capable of notifying the occurrence of the sixth case to the above another semiconductor integrated circuit taken as the first external load (FIG. 10: S1006).

In response to a third notice indicative of the occurrence of the sixth case, the control circuit controls the first power supply switch and the second power supply switch in accordance with a third indication supplied from the above another semiconductor integrated circuit to the semiconductor integrated circuit (FIG. 10: S1007-S1008).

In accordance with the third indication, the control circuit controls the first power supply switch and the second power supply switch to an on state and an off state respectively (FIG. 10: S909) or controls the first power supply switch and the second power supply switch to an off state and an on state respectively (FIG. 10: S1008).

A semiconductor integrated circuit (212) according to a more specific embodiment further includes a step-down DC-DC converter (2121) and a linear regulator (2122) coupled in parallel between the first supply terminal (T1) and the first power supply switch (SW1, SW2).

The linear regulator operates as a series regulator which quickly operates immediately after power-on based on the supply of the first power supply voltage to the first supply terminal.

The step-down DC-DC converter (2121) operates as a switching regulator having power efficiency higher than the linear regulator (refer to FIG. 2).

The most specific embodiment resides in that the first supply terminal (T1) is configured so as to be capable of supplying a power supply voltage based on a wireless power delivery to the first supply terminal (T1) through a first Schottky diode (D1) and an AC-DC conversion power supply voltage of an AC power supply coupling interface (24) thereto through a second Schottky diode (D2).

The second supply terminal (T2) is configured so as to be capable of supplying a USB power supply voltage of a USB coupling interface (23) to the second supply terminal (T2) (refer to FIG. 2).

[2] A typical embodiment according to another aspect is an operating method of a semiconductor integrated circuit (212) equipped with a first supply terminal (T1) capable of supplying a first power supply voltage, a second supply terminal (T2) capable of supplying a second power supply voltage, an input voltage selection circuit (2124) coupled to the first supply terminal and the second supply terminal, a first power supply switch (SW1, SW2), and a second power supply switch (SW3) (refer to FIG. 2).

The input voltage selection circuit (2124) includes a power-on reset circuit (21244), an input voltage detection circuit (21248), a control circuit (21245, 21246) and a power-on reset auxiliary circuit (2124X) (refer to FIG. 6).

When the input voltage detection circuit detects the supply of either of the first and second power supply voltages to either of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, the control circuit responsive to its detection controls either of the first and second power supply switches, corresponding to the supply terminal at which the above supply has been detected, to an on state.

When the input voltage detection circuit detects the supply of both of the first and second power supply voltages to both of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, the control circuit responsive to its detection controls either of the first and second power supply switches, having a high priority of priorities set in advance, to an on state.

After the power supply switch having the high priority has been controlled to the on state, the power-on reset auxiliary circuit (2124X) detects a power failure in the power supply voltage supplied to the power supply switch having the high priority, of the first and second power supply voltages.

The power-on reset circuit performs another power on reset operation in response to a result of detection of the power failure by the power-on reset auxiliary circuit (2124X).

The control circuit controls either of the first and second power supply switches, having a low priority of the priorities set in advance, to an on state at the end of the above another power on reset operation of the power-on reset circuit (refer to FIG. 6).

According to the semiconductor integrated circuit (212) of the present embodiment, an automatic selection made to select again a power supply to be used out of a plurality of power supplies in response to a power failure can be implemented.

2. Further Detailed Description of the Embodiments

Embodiments will next be explained in further detail. Incidentally, in all of the drawings for explaining the best modes for carrying out the invention, the same reference numerals are respectively attached to components having the same function as in the drawings, and their repetitive description will be omitted.

First Embodiment

<<Configuration of multifunction cellular phone>>

FIG. 1 is a diagram showing a configuration of a multifunction cellular phone equipped with a semiconductor integrated circuit 212 for battery charging control, according to a first embodiment.

The multifunction cellular phone shown in FIG. 1 is comprised of a power transmitting circuit 1, a power receiving circuit 2 and a power receiving side system 3. In the multifunction cellular phone shown in FIG. 1 in particular, an RF signal from a power transmitting side antenna coil 13 is received by a power receiving side antenna coil 25 so that the charging of a secondary battery 26 and the supply of power to the power receiving side system 3 are performed.

<<Power Transmitting Circuit on the Transmission Side>>

As shown in FIG. 1, the power transmitting circuit 1 on the transmission side of a wireless power transmission system is supplied with an AC power supply through an AC adaptor 10. The power transmitting circuit 1 is comprised of a microcontroller unit (MCU) 11 and a power transmission control circuit 12. The microcontroller unit (MCU) 11 has an authentication processing function 111 and a cryptographic processing function 112. The power transmission control circuit 12 includes a rectifier circuit 121 and an RF driver 122. The RF driver 122 is coupled to the power transmitting side antenna coil 13.

A DC power supply voltage generated by rectifying and smoothing the AC power supply supplied via the AC adaptor 10 by the rectifier circuit 121 is supplied to the microcontroller unit (MCU) 11, the RF driver 122 and the like in the power transmitting circuit 1. The authentication processing function 111 and the cryptographic processing function 112 of the microcontroller unit (MCU) 11 in the power transmitting circuit 1 respectively perform a mutual authentication process for determining whether a user having the multifunction cellular phone corresponding to the power receiving circuit 2 is a user having a legitimate use right, and etc., and a cryptographic process for preventing interpolation of communication data. That is, the microcontroller unit (MCU) 11 of the power transmitting circuit 1 performs a key management operation related to the generation, retention, renewal, deletion and the like of a cipher key related to a communication protocol between an authentication processing function 221 and a cryptographic processing function 222 of a microcontroller unit (MCU) 22 included in the power receiving circuit 2.

As a result, when it is determined by the microcontroller unit (MCU) 11 of the power transmitting circuit 1 that the user of the multifunction cellular phone corresponding to the power receiving circuit 2 is of the user having the legitimate use right, the RF driver 122 generates an RF drive signal to be supplied to the power transmitting side antenna coil 13 in response to an RF oscillation output signal generated from an unillustrated RF oscillator. Further, communication data related to the authentication process and cryptographic process from the microcontroller unit (MCU) 11 of the power transmitting circuit 1 are supplied to the power receiving circuit 2 through the RF driver 122, the power transmitting side antenna coil 13 and the power receiving side antenna coil 25.

<<Power Receiving Circuit on the Reception Side>>

As shown in FIG. 1, the power receiving circuit 2 on the reception side of the wireless power transmission system is comprised of a power reception control circuit 21 and the microcontroller unit (MCU) 22. The microcontroller unit (MCU) 22 has the authentication processing function 221 and the cryptographic processing function 222. The power reception control circuit 21 includes a rectifier circuit 211 and the semiconductor integrated circuit 212 for the battery charging control.

In the wireless power transmission system shown in FIG. 1, the communications in accordance with the above communication protocol are first performed between the microcontroller unit (MCU) 11 of the power transmitting circuit 1 and the microcontroller unit (MCU) 22 of the power receiving circuit 2 through the power transmitting side antenna coil 13 and the power receiving side antenna coil 25. For such communications, the power receiving circuit 2 is provided to enable serial communications, the supply of power and the like between the power reception control circuit 21 and the microcontroller unit (MCU) 22. When it is determined by the microcontroller unit (MCU) 11 of the power transmitting circuit 1 that the user of the multifunction cellular phone corresponding to the power receiving circuit 2 is of the user having the legitimate use right, an RF drive signal generated from the RF driver 122 is supplied to the power receiving circuit 2 through the power transmitting side antenna coil 13 and the power receiving side antenna coil 25.

A DC power supply voltage generated by allowing the rectifier circuit 211 to rectify and smooth the RF drive signal supplied via the power transmitting side antenna coil 13 and the power receiving side antenna coil 25 is supplied to the semiconductor integrated circuit 212 and the microcontroller unit (MCU) 22. The DC power supply voltage supplied from the rectifier circuit 211 to the semiconductor integrated circuit 212 is used for the charging of the secondary battery 26 and used even for the supply of power to the power receiving side system 3.

When the power receiving side of the wireless power transmission system is of a multifunction cellular phone, the power receiving side system 3 includes an application processor, a baseband processor, a liquid crystal display driver IC, an RF signal processing semiconductor integrated circuit (RFIC), a main memory, non-volatile memories such as a flash memory and so on, etc.

When the power receiving side of the wireless power transmission system is of a portable personal computer like a tablet PC, the power receiving side system 3 further includes a central processing unit (CPU) and a hard disk replacement type flash memory storage having a massive storage capacity.

Further, the semiconductor integrated circuit 212 for the battery charging control and the supply of power to the system can be supplied with a USB power supply voltage from a USB coupling interface 23 and an AC-DC conversion power supply voltage generated by rectifying and smoothing an AC power supply voltage from an AC power supply coupling interface 24 even other than the DC power supply voltage generated by the rectifier circuit 211. Accordingly, the semiconductor integrated circuit 212 for the battery charging control and the system power supply has the function of automatically selecting power supply voltages for the battery charging control and the supply of power to the system out of a plurality of power supply voltages of the DC power supply voltage of the rectifier circuit 211, the USB power supply voltage from the USB coupling interface 23, and the AC-DC conversion power supply voltage from the AC power supply coupling interface 24. Incidentally, USB is an abbreviation of Universal Serial Bus.

<<Configuration of Semiconductor Integrated Circuit for Battery Charging Control>>

FIG. 2 is a diagram showing a configuration of the semiconductor integrated circuit 212 for the battery charging control according to the first embodiment shown in FIG. 1.

As shown in FIG. 2, the semiconductor integrated circuit 212 for the battery charging control and the supply of power to the system includes a step-down DC-DC converter 2121, a linear regulator 2122, a USB type detection circuit 2123, an input voltage detection circuit 2124, an external interface 2125, a built-in regulator 2126 and a gate drive control circuit 2127. Further, the semiconductor integrated circuit 212 includes a P channel MOS transistor Mp0, and switches SW1, SW2, SW3 and SW4.

A supply terminal T1 for a first input voltage 1 is supplied with a power supply voltage based on a wireless power delivery of the power transmitting circuit 1 through a first Schottky diode D1 and an AC-DC conversion power supply voltage from the AC power supply coupling interface 24 through a second Schottky diode D2. A supply terminal T2 for a second input voltage 2 is supplied with a USB power supply voltage from the USB coupling interface 23. The Schottky diodes D1 and D2 respectively function as backflow preventing devices between the power supply voltage based on the wireless power delivery of the power transmitting circuit 1 and the AC-DC conversion power supply voltage from the AC power supply coupling interface 24 and on the other hand, function as voltage transfer devices which transfer a power supply as a forward voltage low as compared with a PN junction diode. Incidentally, the power supply voltage based on the wireless power delivery of the power transmitting circuit 1 is a voltage that ranges from 5.5V to 20V. The AC-DC conversion power supply voltage from the AC power supply coupling interface 24 is a voltage of approximately 7V. The USB power supply voltage from the USB coupling interface 23 is a voltage of 5V.

An inductor L1 and a capacitor C1 are coupled to the step-down DC-DC converter 2121 through external terminals DDOUT1 (T5) and DDOUT2 (T6). Thus, the step-down DC-DC converter 2121 operates as a switching regulator slower in startup at power-on than the linear regulator 2122 but has power efficiency higher than the linear regulator 2122. On the other hand, the linear regulator 2122 operates as a series regulator which operates at once immediately after power-on.

That is, the step-down DC-DC converter 2121 and the linear regulator 2122 generate a system supply voltage ranging from 3.5V to 5V from the power supply voltage of 5.5V to 20V for the wireless power delivery of the power transmitting circuit 1 or from the AC-DC conversion power supply voltage of approximately 7V from the AC power supply coupling interface 24. Thus, the system supply voltage of 5V from the step-down DC-DC converter 2121 and the linear regulator 2122 is supplied to the power receiving side system 3 through the switches SW2 and SW4 and an external terminal SYS (T4). On the other hand, the USB power supply voltage of 5V from the USB coupling interface 23 is supplied to the power receiving side system 3 through the switch SW3 and the external terminal SYS (T4).

The USB type detection circuit 2123 detects from the bit rate of differential data signals D+ and D− of the USB coupling interface 23 or the power delivery capability of the supply terminal T2 for the second input voltage 2 whether the USB coupling interface 23 corresponds to any of USB1.1, USB1.0, USB2.0 and USB3.0.

In order to select the operation mode at the start-up, the input voltage detection circuit 2124 performs the voltage detection of the supply terminal T1 for the first input voltage 1 and the voltage detection of the supply terminal T2 for the second input voltage 2 and further performs on-off control of the switches SW1, SW2, SW3 and SW4 and control of the step-down DC-DC converter 2121, the built-in regulator 2126 and the gate drive control circuit 2127. Further, the input voltage detection circuit 2124 has the function of performing control of the USB type detection circuit 2123 and supplying USB type detection data output from the USB type detection circuit 2123 to the microcontroller unit (MCU) 22 and the power receiving side system 3 through the external interface 2125.

Thus, the external interface 2125 performs interactive communications of a clock and serial data with the power receiving side system 3 and the microcontroller unit (MCU) 22.

The built-in regulator 2126 is supplied with the power supply voltage based on the wireless power delivery of the power transmitting circuit 1 via the step-down DC-DC converter 2121 or the linear regulator 2122 or the AC-DC conversion power supply voltage from the AC power supply coupling interface 24, or the USB power supply voltage from the USB coupling interface 23. As a result, an operating voltage V_(DD) 18 of 1.8V and an operating voltage V_(DD) 30 of 3.0V are generated from the built-in regulator 2126 and supplied to the microcontroller unit (MCU) 22.

The P channel MOS transistor Mp0 is drive-controlled to an on state by the input voltage detection circuit 2124 and the gate drive control circuit 2127 to thereby supply a system supply voltage ranging from 3.5V to 5V at the external terminal SYS (T4) to the secondary battery 26 through an external terminal BAT (T3), whereby the charging of the secondary battery 26 is performed. For example, the secondary battery 26 is a lithium ion battery built in a multifunction cellular phone or the like, and its charging current becomes a relatively large current ranging from about 0.5 A to about 1.0 A.

Further, the gate drive control circuit 2127 generates an output signal for driving the gate of the P channel MOS transistor Mp0 in such a manner that the P channel MOS transistor Mp0 is brought into conduction bidirectionally between the external terminal SYS (T4) and the external terminal BAT (T3). Thus, during the execution of charging of the secondary battery 26, the charging current of the secondary battery 26 flows from the external terminal SYS (T4) to the external terminal BAT (T3). On the other hand, contrary to this, the discharging current of the secondary battery 26 flows from the external terminal BAT (T3) to the external terminal SYS (T4) during a battery operating period by the discharge of the secondary battery 26. Furthermore, the gate drive control circuit 2127 has the function of performing current control of charging and discharging currents during the charging and discharging operations of the secondary battery 26 to thereby prevent overcharging and overdischarging.

<<Functions of External Terminals of Semiconductor Integrated Circuit>>

FIG. 3 is a diagram showing the functions of the external terminals of the semiconductor integrated circuit 212 for the battery charging control according to the first embodiment shown in FIG. 2.

As shown in FIG. 3, the external supply terminal for the first input voltage 1 has the function of supplying the power supply voltage based on the wireless power delivery of the power transmitting circuit 1 or the AC-DC conversion power supply voltage from the AC power supply coupling interface 24 through the first Schottky diode D1 and the second Schottky diode D2.

Further, the external supply terminal for the second input voltage 2 has the function of supplying the USB power supply voltage from the USB coupling interface 23.

The external supply terminal for the differential data signal D+ has the function of supplying a non-inversion input signal D+ of differential data for the USB coupling interface 23.

Further, the external supply terminal for the differential data signal D− has the function of supplying an inversion input signal D− of differential data for the USB coupling interface 23.

The external input/output terminal for the clock has the function of performing an interactive communication of the clock for the external interface 2125.

In addition, the external input/output terminal for the serial data has the function of performing an interactive communication of the serial data for the external interface 2125.

The external terminal DDOUT1 has the function of outputting a switching output signal based on a switching regulator operation at the step-down DC-DC converter 2121.

Further, the external terminal DDOUT2 has the function of outputting an output voltage of the step-down DC-DC converter 2121, which has passed through a low-pass filter comprised of the inductor L1 and the capacitor C1.

The external terminal SYS has the function of outputting a power supply voltage to the power receiving side system 3.

The external terminal BAT has the function of coupling the secondary battery 26.

The external terminal V_(DD) 18 has the function of outputting an operating voltage V_(DD) 18 of 1.8V to the microcontroller (MCU) 22.

The external terminal V_(DD) 30 has the function of outputting an operating voltage V_(DD) 30 of 3.0V to the microcontroller (MCU) 22.

<<Configuration of Input Voltage Detection Circuit According to Comparative Reference Example>>

FIG. 4 is a diagram showing the configuration of the input voltage detection circuit 2124 for selecting an operation mode at the startup of the semiconductor integrated circuit 212 discussed by the present inventors prior to the present invention as a comparative reference example of the present invention.

As shown in FIG. 4, the input voltage detection circuit 2124 according to the comparative reference example of the present invention includes a linear regulator 21241, an input voltage selection switch 21242, a voltage comparison/selection circuit 21243, a first reference voltage generator Ref_Gen1, a first buffer circuit BA1, a second buffer circuit BA2 and a power-on reset circuit 21244. Further, the input voltage detection circuit 2124 includes a control logic circuit 21245, an input voltage selection switch control logic circuit 21246, a clock generator 21247, an input voltage detection circuit 21248 and a gate drive circuit 21249.

As shown in the upper left part of FIG. 4, the supply terminal T1 for the input voltage 1 is supplied with the power supply voltage based on the wireless power delivery of the power transmitting circuit 1 and the AC-DC conversion power supply voltage from the AC power supply coupling interface 24. The supply terminal T2 for the second input voltage 2 is supplied with the USB power supply voltage of the USB coupling interface 23.

The power supply voltage based on the wireless power delivery, having the voltage ranging from 5.5V to 20V or the AC-DC conversion power supply voltage at the supply terminal T1 for the first input voltage 1 is converted to an output power supply voltage Vout of approximately 5V by the linear regulator 21241. The output power supply voltage of approximately 5V is supplied to the source of the P channel MOS transistor Mp1 of the input voltage selection switch 21242 and the gate drive circuit 21249.

The USB power supply voltage from the USB coupling interface 23, having the voltage of 5V supplied to the supply terminal T2 for the second input voltage 2 is supplied to the source of the P channel MOS transistor Mp2 of the input voltage selection switch 21242.

The gate of the P channel MOS transistor Mp1 of the input voltage selection switch 21242 is driven by a first gate drive output signal Mp1_G of the gate drive circuit 21249. The gate of the P channel MOS transistor Mp2 of the input voltage selection switch 21242 is driven by a second gate drive output signal Mp2_G of the gate drive circuit 21249. During a power on rest period to be described in detail below at the power-on, the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G of the gate drive circuit 21249 are both set to a low level. Therefore, the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are both controlled to an on state.

The voltage comparison/selection circuit 21243 is comprised of a P channel MOS transistor Mp3, a P channel MOS transistor Mp4 and a differential amplifier DA1. Thus, the voltage comparison/selection circuit 21243 compares the voltage of a first node Node1 and the voltage of a second node Node2 and thereby selects a high voltage of the two voltages thereof and generates it as an output voltage Vcc. The first node Node1 is coupled to the drain of the P channel MOS transistor Mp3 and an inversion input terminal − of the differential amplifier DA1. The second node Node2 is coupled to the drain of the P channel MOS transistor Mp4 and a non-inversion input terminal + of the differential amplifier DA1. A non-inversion output terminal + and an inversion output terminal − of the differential amplifier DA1 are respectively coupled to the gate of the P channel MOS transistor Mp3 and the gate of the P channel MOS transistor Mp4. The source of the P channel MOS transistor Mp3 and the source of the P channel MOS transistor Mp4 are coupled in common to generate the output voltage Vcc.

The output voltage Vcc of the voltage comparison/selection circuit 21243 is supplied to the differential amplifier DA1, the first reference voltage generator Ref_Gen1, the first buffer circuit BA1 and the second buffer circuit BA2 as an operating power supply voltage.

The first reference voltage generator Ref_Gen1 allows the output voltage Vcc output from the voltage comparison/selection circuit 21243 to function as an operating power supply voltage to thereby generate a reference voltage V_(REF).

The first buffer circuit BA1 and the second buffer circuit BA2 respectively generate an analog circuit power supply voltage AV_(DD) and a digital circuit power supply voltage DV_(DD) proportional to the level of the reference voltage V_(REF) in response to the reference voltage V_(REF) generated from the first reference voltage generator Ref_Gen1.

The power-on reset circuit 21244 is comprised of a second reference voltage generator Ref_Gen2, a differential amplifier DA2, a resistor Rp, a capacitor Cp and a third buffer circuit BA3. The second reference voltage generator Ref_Gen2 and differential amplifier DA2 of the power-on reset circuit 21244 are supplied with the digital circuit power supply voltage DV_(DD) generated by the second buffer circuit BA2. A non-inversion input terminal + and inversion input terminal − of the differential amplifier DA2 are respectively supplied with the digital circuit power supply voltage DV_(DD) and a reference voltage V_(BB) generated from the second reference voltage generator Ref_Gen2.

An output voltage of the differential amplifier DA2 of the power-on reset circuit 21244 is supplied to one end of the resistor Rp. The other end of the resistor Rp is coupled to one end of the capacitor Cp and an input terminal of the third buffer circuit BA3. The other end of the capacitor Cp is coupled to a ground potential. A power on reset signal POR of a low level generated from the third buffer circuit BA3 during the power on reset period is supplied to an inversion reset input terminal/Reset of the control logic circuit 21245 and an inversion reset input terminal/Reset of the input voltage selection switch control logic circuit 21246.

A clock signal generated from the clock generator 21247 supplied with the output voltage Vcc delivered from the voltage comparison/selection circuit 21243 and the digital circuit power supply voltage DV_(DD) delivered from the second buffer circuit BA2 is supplied to a clock input terminal CLK of the control logic circuit 21245 and a clock input terminal CLK of the input voltage selection switch control logic circuit 21246.

The control logic circuit 21245 of the input voltage detection circuit 2124 controls the whole operation of the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2. That is, an analog circuit 2128 coupled to the input voltage detection circuit 2124 shown in FIG. 4 includes analog circuits of the step-down DC-DC converter 2121, linear regulator 2122, USB type detection circuit 2123, built-in regulator 2126 and gate drive control circuit 2127 of the semiconductor integrated circuit 212 shown in FIG. 2. Accordingly, the operations of these analog circuits are all controlled by the control logic circuit 21245 of the input voltage detection circuit 2124 shown in FIG. 4. Incidentally, the analog circuit 2128 is supplied with the output voltage Vcc delivered from the voltage comparison/selection circuit 21243 and the analog circuit power supply voltage AV_(DD) output from the first buffer circuit BA1.

Further, likewise, the operation of the input voltage selection switch control logic circuit 21246 is also controlled by the control logic circuit 21245 of the input voltage detection circuit 2124 shown in FIG. 4.

Furthermore, likewise, the operations of the switches SW1, SW2, SW3 and SW4, built-in regulator 2126 and gate drive control circuit 2127 shown in FIG. 2 are also controlled by the control logic circuit 21245 of the input voltage detection circuit 2124 shown in FIG. 4.

The input voltage detection circuit 21248 is supplied with the output voltage Vcc delivered from the voltage comparison/selection circuit 21243 and the analog circuit power supply voltage AV_(DD) output from the first buffer circuit BA1. After the elapse of the power on reset period, the input voltage detection circuit 21248 detects the level of the power supply voltage based on the wireless power delivery or AC-DC conversion at the supply terminal T1 for the first input voltage 1, and the level of the USB power supply voltage at the supply terminal T2 for the second input voltage 2. As a result, voltage detection output signals Vdet1 and Vdet2 of 2 bits output from the input voltage detection circuit 21248 are supplied to the control logic circuit 21245 and the input voltage selection switch control logic circuit 21246. That is, the voltage detection output signal Vdet1 indicates a result of detection of the presence or absence of the supply of the power supply voltage based on the wireless power delivery or AC-DC conversion to the supply terminal T1 for the first input voltage 1. Also the voltage detection output signal Vdet2 indicates a result of detection of the presence or absence of the supply of the USB power supply voltage to the supply terminal T2 for the second input voltage 2.

After the elapse of the power on reset period, one of the first gate drive output signal Mp1_G and second gate drive output signal Mp2_G of the gate drive circuit 21249 and the other thereof are respectively set to a low level and a high level by signals output from the input voltage selection switch control logic circuit 21246 that has responded to the 2-bit voltage detection output signals Vdet1 and Vdet2, whereby the automatic selection of a power supply to be used is carried out.

Consider where the supply of the power supply voltage to the supply terminal T1 for the first input voltage 1 is detected by the high-level voltage detection output signal Vdet1, and the non-supply of the power supply voltage to the supply terminal T2 for the second input voltage 2 is detected by the low-level voltage detection output signal Vdet2. In this case, in response to the voltage detection output signals Vdet1 and Vdet2 different in level, the control logic circuit 21245 controls the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 to an on state and on the other hand, controls the switch SW3 to an off state. As a result, the voltage supplied from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 via the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3. Further, in this case, the gate drive circuit 21249 sets the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to low and high levels respectively. In addition, the voltage comparison/selection circuit 21243 detects that the voltage of the first node Node1 is higher than that of the second node Node2 and generates the voltage of the first node Node1 supplied from the supply terminal T1 for the first input voltage 1, as the output voltage Vcc of the voltage comparison/selection circuit 21243.

Consider where the non-supply of the power supply voltage to the supply terminal T1 for the first input voltage 1 is detected by the low-level voltage detection output signal Vdet1, and the supply of the power supply voltage to the supply terminal T2 for the second input voltage 2 is detected by the high-level voltage detection output signal Vdet2. In this case, in response to the voltage detection output signals Vdet1 and Vdet2 different in level, the control logic circuit 21245 controls the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 to an off state and on the other hand, controls the switch SW3 to an on state. As a result, the voltage supplied from the supply terminal T2 for the second input voltage 2 is used for the charging of the secondary battery 26 via the switch SW3 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3. Further, in this case, the gate drive circuit 21249 sets the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to high and low levels respectively. In addition, the voltage comparison/selection circuit 21243 detects that the voltage of the second node Node2 is higher that that of the first node Noded1 and generates the voltage of the second node Node2 supplied from the supply terminal T2 for the second input voltage 2, as the output voltage Vcc of the voltage comparison/selection circuit 21243.

Consider where the supply of the power supply voltage based on the wireless power delivery or AC-DC conversion to the supply terminal T1 for the first input voltage 1 and the supply of the USB power supply voltage to the supply terminal T2 for the second input voltage 2 are simultaneously detected by the 2-bit voltage detection output signals Vdet1 and Vdet2 of the input voltage detection circuit 21248. In this case, in response to the voltage detection output signals Vdet1 and Vdet2 both high in level, the control logic circuit 21245 adjusts the level of the output power supply voltage Vout of approximately 5V of the linear regulator 21241.

That is, when the supply voltage of the supply terminal T1 for the first input voltage 1, which has been detected simultaneously with the supply voltage of the supply terminal T2 for the second input voltage 2, takes precedence over the supply voltage of the supply terminal T2 for the second input voltage 2, the output power supply voltage Vout of approximately 5V of the linear regulator 21241 is set to, for example, 5.2V higher than the USB power supply voltage from the USB coupling interface 23, having the voltage of 5V supplied to the supply terminal T2 for the second input voltage 2. Further, the first gate drive output signal Mp1_G and second gate drive output signal Mp2_G of the gate drive circuit 21249 controlled by the control logic circuit 21245 are set to low and high levels respectively. As a result, the voltage comparison/selection circuit 21243 detects that the voltage of the first Node1 is higher than that of the second node Node2 and generates the supply voltage of the supply terminal T1 for the first input voltage 1 as the output voltage Vcc of the voltage comparison/selection circuit 21243. Further, the control logic circuit 21245 controls the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 to an on state and on the other hand, controls the switch SW3 to an off state. As a result, the voltage supplied from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

Contrary to this, when the supply voltage of the supply terminal T2 for the second input voltage 2 takes higher priority than the supply voltage of the supply terminal T1 for the first input voltage 1, the output power supply voltage Vout of approximately 5V of the linear regulator 21241 is set to, for example, 4.8V lower than the USB power supply voltage from the USB coupling interface 23, having the voltage of 5V supplied to the supply terminal T2 for the second input voltage 2. Further, the first gate drive output signal Mp1_G and second gate drive output signal Mp2_G of the gate drive circuit 21249 controlled by the control logic circuit 21245 are set to high and low levels respectively. As a result, the voltage comparison/selection circuit 21243 detects that the voltage of the second Node2 is higher than that of the first Node Node1 and generates the voltage of the second node Node2 from the supply terminal T2 for the second input voltage 2 as the output voltage Vcc of the voltage comparison/selection circuit 21243. Further, the control logic circuit 21245 controls the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 to an off state and on the other hand, controls the switch SW3 to an on state. As a result, the voltage supplied from the supply terminal T2 for the second input voltage 2 is used for the charging of the secondary battery 26 through the switch SW3 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

On the other hand, before the elapse of the power on reset period, the first gate drive output signal Mp1_G and second gate drive output signal Mp2_G of the gate drive circuit 21249 are both set to the low level by the output signal of the input voltage selection switch control logic circuit 21246 that has responded to the low-level power on reset signal POR. As a result, the P channel MOS transistor Mp1 and the P channel MOS transistor Mp2 included in the input voltage selection switch 21242 are both controlled to an on state.

FIG. 5 is a diagram showing waveforms of respective parts of the input voltage detection circuit 2124, for describing the operation of the input voltage detection circuit 2124 according to the comparative reference example of the present invention shown in FIG. 4.

As shown in FIG. 5, during a period T1, a rise in the power supply voltage based on the wireless power delivery at the supply terminal T1 for the first input voltage 1 is first started by the supply of the power supply voltage to the supply terminal T1 for the first input voltage 1. When the power supply voltage based on the wireless power delivery reaches a detection threshold voltage, the voltage detection output signal Vdet1 of the input voltage detection circuit 21248 changes from a low to high levels.

In response to the rise in the wireless power supply voltage, a rise in the output voltage Vcc of the voltage comparison/selection circuit 21243 is started. Further, a rise in the digital circuit power supply voltage DV_(DD) generated from the second buffer circuit BA2 is started in response to the rise in the output voltage Vcc of the voltage comparison/selection circuit 21243. When the digital circuit power supply voltage DV_(DD) reaches a detection threshold voltage corresponding to the reference voltage V_(BB) of the second reference voltage generator Ref_Gen2, the output of the differential amplifier DA2 of the power-on reset circuit 21244 changes from a low to high levels, so that a power on reset period based on the charge of the resistor Rp and capacitor Cp in a time constant circuit is started. When the terminal voltage Vc applied across the capacitor Cp of the time constant circuit reaches a detection threshold voltage corresponding to the threshold voltage of the third buffer circuit BA3, a power on reset signal POR changes from a low to high levels so that the power on reset operation of the control logic circuit 21245 and the input voltage selection switch control logic circuit 21246 is ended.

With the completion of the power on reset operation, the input voltage detection circuit 21248 is responsive to the high level voltage detection output signal Vdet1 and low level voltage detection output signal Vdet2 of the input voltage detection circuit 21248 during a period T2. Accordingly, the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G are respectively set to low and high levels by control made by the input voltage selection switch control logic circuit 21246 and the gate drive circuit 21249. Accordingly, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to an on state and an off state, the USB power delivery is controlled to an off state and the wireless power delivery is controlled to an on state, so that the automatic selection of a power supply to be used is performed.

In this state, at the end of the period T2, a rise in the power supply voltage based on the USB power delivery at the supply terminal T2 for the second input voltage 2 is started by the supply of the power supply voltage to the supply terminal T2 for the second input voltage 2. As a result, when the rise in the power supply voltage based on the USB power delivery reaches a detection threshold voltage, the voltage detection output signal Vdet2 of the input voltage detection circuit 21248 changes from a low to high levels.

Both voltage detection output signals Vdet1 and Vdet2 high in level are generated from the input voltage detection circuit 21248 at the last timing of the period 2. Since, however, the priority of the wireless power delivery is set higher than that of the USB power delivery inside the control logic circuit 21245, the low level first gate drive output signal Mp1_G and the high level second gate drive output signal Mp2_G are generated from the gate drive circuit 21249 at the last timing of the period 2. As a result, in the input voltage selection switch 21242, the P channel MOS transistor Mp1 is held in an on state, whereas the P channel MOS transistor Mp2 is held in an off state. Therefore, the power supply voltage based on the wireless power delivery at the supply terminal T1 for the first input voltage 1 is selected as the output voltage Vcc delivered from the voltage comparison/selection circuit 21243.

As shown in FIG. 5, however, a power failure in the power supply voltage based on the wireless power delivery at the supply terminal 1 for the first input voltage 1, which has been set to the high priority, occurs at the timing of switching between the periods T2 and T3. Accordingly, the output voltage Vcc of the voltage comparison/selection circuit 21243 and the digital circuit power supply voltage DV_(DD) of the second buffer circuit BA2 are reduced and hence the terminal voltage Vc applied across the capacitor Cp of the time constant circuit in the power-on reset circuit 21244 and the power on reset signal POR of the third buffer circuit are also lowered. However, a reduction in the terminal voltage Vc of the capacitor Cp of the time constant circuit in the power-on reset circuit 21244 is a level insufficient to cause the power on reset operation.

On the other hand, since the levels of the output voltage Vcc and the analog circuit power supply voltage AV_(DD) from the voltage comparison/selection circuit 21243, which are supplied to the input voltage detection circuit 21248 as operating power supply voltages, are reduced, the voltage levels of the voltage detection output signals Vdet1 and Vdet2 generated from the input voltage detection circuit 21248 are also lowered in like manner. Accordingly, since the second gate drive output signal Mp2_G generated from the gate drive circuit 21249 changes from a high to low levels as shown in FIG. 5, the P channel MOS transistor Mp2 of the input voltage selection switch 21242 changes from an off state to an on state. At that point in time, the power supply voltage based on the USB power delivery at the supply terminal T2 for the second input voltage 2 being high in level is transferred to the second node Node2 of the voltage comparison/selection circuit 21243 via a source-to-drain path of the P channel MOS transistor Mp2. At this point in time, the voltage of the first node Node1 of the voltage comparison/selection circuit 21243 is at a low level due to the powder failure in the power supply voltage based on the wireless power delivery at the supply terminal T1 for the first input voltage 1. As a result, since the voltage comparison/selection circuit 21243 selects the power supply voltage based on the USB power delivery at the second node Node2 and generates the same as its output voltage Vcc, the output voltage Vcc of the voltage comparison/selection circuit 21243 abruptly changes from a low level to a high level as shown in FIG. 5. Accordingly, the terminal voltage Vc of the capacitor Cp of the time constant circuit in the power-on reset circuit 21244 and the power on reset signal POR of the third buffer circuit slightly rise.

Since the voltage detection output signal Vdet2 of the input voltage detection circuit 21248 also recovers from a low level to a high level with the recovery of the output voltage Vcc of the voltage comparison/selection circuit 21243 to the high level, the P channel MOS transistor Mp2 of the input voltage selection switch 21242 changes from an on state to an off state. As a result, the power supply voltage based on the USB power delivery at the supply terminal T2 for the second input voltage 2 being high in level is not transferred to the second node Node2 of the voltage comparison/selection circuit 21243 through the source-to-drain path of the P channel MOS transistor Mp2. Thus, as shown in FIG. 5, the output voltage Vcc of the voltage comparison/selection circuit 21243 and the digital circuit power supply voltage DV_(DD) of the second buffer circuit BA2 start to drop again. As a result, since the voltage level of the voltage detection output signal Vdet2 of the input voltage detection circuit 21248 and the second gate drive output signal Mp2_G of the gate drive circuit 21249 are lowered, the P channel MOS transistor Mp2 of the input voltage selection switch 21242 changes from the off to on state and hence the output voltage Vcc of the voltage comparison/selection circuit 21243 abruptly changes from a low level to a high level. Subsequently, the input voltage detection circuit 2124 according to the comparative reference example of the present invention shown in FIG. 4 repeats a similar operation as shown in FIG. 5.

As a result, as explained at the outset, the power on reset operation of the power-on reset circuit 21244 is imperfectly carried out in response to the power failure in the power supply voltage based on the wireless power delivery at the supply terminal T1 for the first input voltage 1 set to the high order of precedence. It is thus difficult to perform an automatic selection made to select again a power supply to be used out of a plurality of power supplies in response to a power failure in a power supply voltage set to a high order of precedence at the power supplies.

<<Configuration of Input Voltage Detection Circuit According to the First Embodiment>>

FIG. 6 is a diagram showing a configuration of an input voltage detection circuit 2124 for the selection of an operation mode at start-up of the semiconductor integrated circuit 212 for the battery charging control, according to the first embodiment shown in FIG. 2.

The input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6 is different in the following points from the input voltage detection circuit 2124 according to the comparative reference example of the present invention shown in FIG. 4.

That is, a power-on reset auxiliary circuit 2124X not included in the input voltage detection circuit 2124 according to the comparative reference example of the present invention of FIG. 4 is added to the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6.

The power-on reset auxiliary circuit 2124X added to the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6 is comprised of a third reference voltage generator Ref_Gen3, a fourth reference voltage generator Ref_Gen4, two differential amplifiers DA3 and DA4, and two N channel MOS transistors Mn1 and Mn2.

The power supply voltage of the supply terminal T1 for the first input voltage 1 is supplied to the fourth reference voltage generator Ref_Gen4 and differential amplifier DA4 of the power-on reset auxiliary circuit 2124X through the linear regulator 21241 and the P channel MOS transistor Mp1 of the input voltage selection switch 21242 as an operating power supply voltage. Incidentally, the power supply voltage of the supply terminal T1 for the first input voltage 1 is of the power supply voltage based on the wireless power delivery from the power transmitting circuit 1 or the power supply voltage based on the AC-DC conversion from the AC power supply coupling interface 23. The fourth reference voltage generator Ref_Gen4 activates the power supply voltage of the supply terminal T1 for the first input voltage 1 as the operating power supply voltage to thereby generate a reference voltage. An inversion input terminal − and a non-inversion input terminal + of the differential amplifier DA4 are respectively supplied with the digital circuit power supply voltage DV_(DD) and the reference voltage generated from the fourth reference voltage generator Ref_Gen4. An output terminal of the differential amplifier DA4 is coupled to the gate of the N channel MOS transistor Mn2. The source and drain of the N channel MOS transistor Mn2 are respectively coupled to a ground potential and a common coupling node of the resistor Rp and capacitor Cp of the power-on reset circuit 21244.

The power supply voltage of the supply terminal T2 for the second input voltage 2 is supplied to the third reference voltage generator Ref_Gen3 and differential amplifier DA3 of the power-on reset auxiliary circuit 2124X as an operating power supply voltage. Incidentally, the power supply voltage of the supply terminal T2 for the second input voltage 2 is of the power supply voltage from the USB coupling interface 23. The third reference voltage generator Ref_Gen3 activates the power supply voltage of the supply terminal T2 for the second input voltage 2 as the operating power supply voltage to thereby generate a reference voltage. An inversion input terminal − and a non-inversion input terminal + of the differential amplifier DA3 are respectively supplied with the digital circuit power supply voltage DV_(DD) and the reference voltage generated from the third reference voltage generator Ref_Gen3. An output terminal of the differential amplifier DA3 is coupled to the gate of the N channel MOS transistor Mn1. The source and drain of the N channel MOS transistor Mn1 are respectively coupled to the ground potential and the common coupling node of the resistor Rp and capacitor Cp of the power-on reset circuit 21244.

In the power-on reset auxiliary circuit 2124X added to the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6, the third reference voltage generator Ref_Gen3, the differential amplifier DA3 and the N channel MOS transistor Mn1 detect a power failure in the wireless power delivery where the priority of the wireless power delivery is set higher than that of the USB power delivery. Incidentally, the priority of the wireless power delivery is set higher than that of the USB power delivery inside the control logic circuit 21245.

In the power-on reset auxiliary circuit 2124X added to the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6, the fourth reference voltage generator Ref_Gen4, the differential amplifier DA4 and the N channel MOS transistor Mn2 detect a power failure in the USB power delivery where the priority of the USB power delivery is set higher than that of the wireless power delivery. Incidentally, the priority of the USB power delivery is set higher than that of the wireless power delivery inside the control logic circuit 21245.

Since the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6 is identical in other configurations to the input voltage detection circuit 2124 according to the comparative reference example of the present invention shown in FIG. 4, their description will be omitted.

<<Waveforms of Respective Parts of Input Voltage Detection Circuit According to the First Embodiment>>

FIG. 7 is a diagram showing waveforms of respective parts of the input voltage detection circuit 2124, for explaining the operation of the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6.

In the waveforms of the respective parts of the input voltage detection circuit 2124 according to the first embodiment of FIG. 6, which are shown in FIG. 7, the waveforms taken up to the timing of switching between periods T2 and T3 are identical to the waveforms of the respective parts of the input voltage detection circuit 2124 according to the comparative reference example of the present invention of FIG. 4, which have been shown in FIG. 5. Their description will therefore be omitted.

That is, at the timing of switching between the periods T2 and T3 as shown in FIG. 7, a power failure in the power supply voltage based on the wireless power delivery at the supply terminal T1 for the first input voltage 1, which has been set to a high order of precedence, occurs. At the timing immediately after this power failure, the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively set to an on state and an off state. Accordingly, a reduction in the power supply voltage based on the wireless power delivery at the supply terminal T1 for the first voltage 1 due to the power failure is transferred to the first node Node1 of the voltage comparison/selection circuit 21243 via the P channel MOS transistor Mp1 held in the on state. On the other hand, since the second node Node2 of the voltage comparison/selection circuit 21243 is at the ground potential, the voltage comparison/selection circuit 21243 outputs, as its output voltage Vcc, the reduction in the power supply voltage based on the wireless power delivery at the supply terminal T1 for the first input voltage 1 transferred to the first node Node1 higher in level than the second node Node2.

Thus, since the digital circuit power supply voltage DV_(DD) of the second buffer circuit BA2 is reduced in response to the reduction in the output voltage Vcc of the voltage comparison/selection circuit 21243, the terminal voltage Vc of the capacitor Cp of the time constant circuit in the power-on reset circuit 21244 and the power on reset signal POR of the third buffer circuit are slightly reduced. As a result, the digital circuit power supply voltage DV_(DD) of the inversion input terminal − of the differential amplifier DA3 in the power-on reset auxiliary circuit 2124X becomes lower in level than the reference voltage of the third reference voltage generator Ref_Gen3, which is supplied to its non-inversion input terminal +, so that the output signal of the differential amplifier DA3 changes from a low to high levels.

Thus, since the N channel MOS transistor Mn1 of the power-on reset auxiliary circuit 2124X is brought from an off state to an on state, the capacitor Cp of the time constant circuit of the power-on reset circuit 21244 is discharged to the ground potential through the N channel MOS transistor Mn1 held in the on state. As a result, the terminal voltage Vc of the capacitor Cp of the time constant circuit in the power-on reset circuit 21244 and the power on reset signal POR of the third buffer circuit change to the low level corresponding to the ground potential. Therefore, the control logic circuit 21245 and the input voltage selection switch control logic circuit 21246 are reset by the supply of the low level power on reset signal POR to the inversion reset input terminal/Reset. Accordingly, the power on reset period is resumed so that both the first gate drive output signal Mp1_G and second gate drive output signal Mp2_G of the gate drive circuit 21249 are set to a low level in response to the output signal of the input voltage selection switch control logic circuit 21246. As a result, both of the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are controlled to an on state.

As a result, during the period T3 of the power failure in the wireless power delivery, the high-level power supply voltage based on the USB power delivery at the supply terminal T2 for the second input voltage 2 is transferred to the second node Node2 of the voltage comparison/selection circuit 21243 through the P channel MOD transistor Mp2 controlled to the on state by the input voltage selection switch 21242. On the other hand, since the first node Node1 of the voltage comparison/selection circuit 21243 is at the ground potential, the voltage comparison/selection circuit 21243 outputs the high-level power supply voltage based on the USB power delivery at the supply terminal T2 for the second input voltage 2, which has been transferred to the second node Node2 higher in level than the first node Node1, as its output voltage Vcc.

Thus, since the digital circuit power supply voltage DV_(DD) of the second buffer circuit BA2 also rises in response to the high-level output voltage Vcc of the voltage comparison/selection circuit 21243, the terminal voltage Vc of the capacitor Cp of the time constant circuit in the power-on reset circuit 21244 rises.

The power on reset period based on the charge of the resistor Rp and capacitor Cp of the time constant circuit is started. When the terminal voltage Vc of the capacitor Cp of the time constant circuit reaches a detection threshold voltage corresponding to the threshold voltage of the third buffer circuit BA3, the power on reset signal POR changes from a low to high levels, so that the power on reset operation of the control logic circuit 21245 and the input voltage selection switch control logic circuit 21246 is ended.

With the end of the resumed power on reset operation, during a period T4, the input voltage detection circuit 21248 generates the voltage detection output signal Vdet1 low in level and the voltage detection output signal Vdet2 high in level. Accordingly, the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G are respectively set to a high and low levels by control made by the input voltage selection switch control logic circuit 21246 and the gate drive circuit 21249. Thus, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to an off state and an on state, the wireless power delivery is controlled to an off state and the USB power delivery is controlled to an on state, whereby an automatic selection made to select again a power supply to be used out of a plurality of power supplies in response to the power failure is performed.

FIG. 8 is a diagram showing waveforms of the respective parts of the input voltage detection circuit 2124 at an electric power failure in the USB power delivery where the priority of the USB power delivery is set higher than the priority of a wireless power delivery inside the control logic circuit 21245 of the input voltage detection circuit 2124 of the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2.

As shown in FIG. 8, during a period T1, a rise in the power supply voltage based on the USB power delivery at the supply terminal T2 for the second input voltage 2 is first started by the supply of the power supply voltage to the supply terminal T2 for the second input voltage 2. When the power supply voltage based on the USB power delivery reaches a detection threshold voltage, the voltage detection output signal Vdet2 of the input voltage detection circuit 21248 changes from a low to high levels.

A rise in the output voltage Vcc of the voltage comparison/selection circuit 21243 is started in response to the rise in the USB power supply voltage. Further, a rise in the digital circuit power supply voltage DV_(DD) generated from the second buffer circuit BA2 is started in response to the rise in the output voltage Vcc of the voltage comparison/selection circuit 21243. When the digital circuit power supply voltage DV_(DD) reaches a detection threshold voltage corresponding to the reference voltage V_(BB) of the second reference voltage generator Ref_Gen2, the output of the differential amplifier DA2 of the power-on reset circuit 21244 changes from a low to high levels, so that the power on reset period based on the charge of the resistor Rp and capacitor Cp of the time constant circuit is started. When the terminal voltage Vc of the capacitor Cp of the time constant circuit reaches a detection threshold voltage corresponding to the threshold voltage of the third buffer circuit BA3, the power on reset signal POR changes from a low to high levels and hence the power on reset operation of the control logic circuit 21245 and the input voltage selection switch control logic circuit 21246 is ended.

With the end of the power on reset operation, during a period T2, the input voltage detection circuit 21248 responds to the voltage detection output signal Vdet1 low in level and the voltage detection output signal Vdet2 high in level. Accordingly, the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G are respectively set to a high and low levels by control made by the input voltage selection switch control logic circuit 21246 and the gate drive circuit 21249. Thus, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to an off state and an on state, the wireless power delivery is controlled to an off state and the USB power delivery is controlled to an on state, whereby the automatic selection of a power supply to be used is performed.

In this state, at the end of the period T2, a rise in the power supply voltage based on the wireless power delivery at the supply terminal T1 for the first input voltage 1 is started by the supply of the power supply voltage to the supply terminal T1 for the first input voltage 1. As a result, when the rise in the power supply voltage based on the wireless power delivery reaches a detection threshold voltage, the voltage detection output signal Vdet1 of the input voltage detection circuit 21248 changes from a low to high levels.

Both voltage detection output signals Vdet1 and Vdet2 high in level are generated from the input voltage detection circuit 21248 at the last timing of the period 2. Since, however, the priority of the USB power delivery is set higher than that of the wireless power delivery inside the control logic circuit 21245, the high level first gate drive output signal Mp1_G and the low level second gate drive output signal Mp2_G are generated from the gate drive circuit 21249 at the last timing of the period 2. As a result, in the input voltage selection switch 21242, the P channel MOS transistor Mp2 is held in an on state, whereas the P channel MOS transistor Mp1 is held in an off state. Therefore, the power supply voltage based on the USB power delivery at the supply terminal T2 for the second input voltage 2 is selected as the output voltage Vcc delivered from the voltage comparison/selection circuit 21243.

As shown in FIG. 8, however, a power failure in the power supply voltage based on the USB power delivery at the supply terminal 1 for the first input voltage 1, which has been set to the high priority, occurs at the timing of switching between the periods T2 and T3. At the timing immediately after the power failure, the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively set to an off state and an on state. Accordingly, a reduction in the power supply voltage based on the USB power delivery at the supply terminal T2 for the second input voltage 2 due to the power failure is transferred to the second node Node2 of the voltage comparison/selection circuit 21243 through the P channel MOS transistor Mp2 held in the on state. On the other hand, since the first node Node1 of the voltage comparison/selection circuit 21243 is at the ground potential, the voltage comparison/selection circuit 21243 outputs the reduction in the power supply voltage based on the USB power delivery at the supply terminal T2 for the second input voltage 2, which has been transferred to the second node Node2 higher in level than the first node Node1, as its output voltage Vcc.

Thus, since the digital circuit power supply voltage DV_(DD) of the second buffer circuit BA2 is reduced in response to the reduction in the output voltage Vcc of the voltage comparison/selection circuit 21243, the terminal voltage Vc of the capacitor Cp of the time constant circuit in the power-on reset circuit 21244 and the power on reset signal POR of the third buffer circuit are slightly reduced. As a result, the digital circuit power supply voltage DV_(DD) of the inversion input terminal − of the differential amplifier DA4 in the power-on reset auxiliary circuit 2124X becomes lower in level than the reference voltage of the fourth reference voltage generator Ref_Gen4, which is supplied to its non-inversion input terminal +, so that the output signal of the differential amplifier DA4 changes from a low to high levels.

Thus, since the N channel MOS transistor Mn2 of the power-on reset auxiliary circuit 2124X is brought from an off state to an on state, the capacitor Cp of the time constant circuit of the power-on reset circuit 21244 is discharged to the ground potential through the N channel MOS transistor Mn2 held in the on state. As a result, the terminal voltage Vc of the capacitor Cp of the time constant circuit in the power-on reset circuit 21244 and the power on reset signal POR of the third buffer circuit change to the low level corresponding to the ground potential. Therefore, the control logic circuit 21245 and the input voltage selection switch control logic circuit 21246 are reset by the supply of the low level power on reset signal POR to the inversion reset input terminal/Reset. Accordingly, the power on reset period is resumed so that both the first gate drive output signal Mp1_G and second gate drive output signal Mp2_G of the gate drive circuit 21249 are set to a low level in response to the output signal of the input voltage selection switch control logic circuit 21246. As a result, both of the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 included in the input voltage selection switch 21242 are controlled to an on state.

Thus, during the period T3 of the power failure in the wireless power delivery, the high-level power supply voltage based on the wireless power delivery at the supply terminal T1 for the first input voltage 1 is transferred to the first node Node1 of the voltage comparison/selection circuit 21243 via the P channel MOS transistor Mp1 controlled to the on state by the input voltage selection switch 21242. On the other hand, since the second node Node2 of the voltage comparison/selection circuit 21243 is at the ground potential, the voltage comparison/selection circuit 21243 outputs the high-level power supply voltage based on the wireless power delivery at the supply terminal T1 for the first input voltage 1, which has been transferred to the first node Node1 higher in level than the second node Node2, as its output voltage Vcc.

Thus, since the digital circuit power supply voltage DV_(DD) of the second buffer circuit BA2 also rises in response to the high-level output voltage Vcc of the voltage comparison/selection circuit 21243, the terminal voltage Vc of the capacitor Cp of the time constant circuit of the power-on reset circuit 21244 rises.

The power on reset period based on the charge of the resistor Rp and capacitor Cp of the time constant circuit is started. When the terminal voltage Vc of the capacitor Cp of the time constant circuit reaches a detection threshold voltage corresponding to the threshold voltage of the third buffer circuit BA3, the power on reset signal POR changes from a low to high levels, so that the power on reset operation of the control logic circuit 21245 and the input voltage selection switch control logic circuit 21246 is ended.

With the end of the resumed power on reset operation, during a period T4, the input voltage detection circuit 21248 generates the voltage detection output signal Vdet1 high in level and the voltage detection output signal Vdet2 low in level. Accordingly, the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G are respectively set to a low and high levels by control made by the input voltage selection switch control logic circuit 21246 and the gate drive circuit 21249. Thus, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to an on state and an off state, the USB power delivery is controlled to an off state and the wireless power delivery is controlled to an on state, whereby an automatic selection made to select again a power supply to be used out of a plurality of power supplies in response to the power failure is performed.

<<Operation of Automatically Selecting Used Power Supply from a Plurality of Power Supplies>>

FIG. 9 is a diagram showing the operation of automatically selecting a power supply to be used out of a plurality of power supplies by the semiconductor integrated circuit 212 according to the first embodiment shown in FIGS. 2 and 4.

As shown in Step S900 of FIG. 9, in an initial setting state before the power supply voltages are supplied to the supply terminal T1 for the first input voltage 1 and the supply terminal T2 for the second input voltage 2, the first gate drive output signal Mp1_G and second gate drive output signal Mp2_G of the gate drive circuit 21249 are both set to a low level. As a result, the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are both controlled to an on state.

At the next Step S901, at least either of the supply terminal T1 for the first input voltage 1 and the supply terminal T2 for the second input voltage 2 is supplied with the power supply voltage. That is, the supply terminal T1 for the first input voltage 1 is supplied with the power supply voltage based on the wireless power delivery of the power transmitting circuit 1 and the AC-DC conversion power supply voltage from the AC power supply coupling interface 24. Alternatively, the supply terminal T2 for the second input voltage 2 is supplied with the USB power supply voltage from the USB coupling interface 23.

At the next Step S902, since the digital circuit power supply voltage DV_(DD) rises in response to the supply of power at Step S901, the power on reset operation by the power-on reset circuit 21244 is performed.

When the power on reset operation at Step S902 is ended, the detection of a plurality of power supply voltages is performed at the next Step S903. That is, at Step S903, the input voltage detection circuit 21248 detects the level of the power supply voltage based on the wireless power delivery or AC-DC conversion at the supply terminal T1 for the first input voltage 1 and the level of the USB power supply voltage of the supply terminal T2 for the second input voltage 2. As a result, voltage detection output signals Vdet1 and Vdet2 of two bits are generated from the input voltage detection circuit 21248. The voltage detection output signal Vdet1 indicates a result of detection of the presence or absence of the supply of the power supply voltage based on the wireless power delivery or AC-DC conversion to the supply terminal T1 for the first input voltage 1. The voltage detection output signal Vdet2 indicates a result of detection of the presence or absence of the supply of the USB power supply voltage to the supply terminal T2 for the second input voltage 2.

When, upon the detection of the power supply voltages at above Step S903, only the supply of the power supply voltage to the supply terminal T1 for the first input voltage 1 is detected, and the supply of the power supply voltage to the supply terminal T2 for the second input voltage 2 is not detected, the process for the automatic selecting operation proceeds to Step S904.

That is, at the next Step S905, the gate drive circuit 21249 sets the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to low and high levels respectively in response to the detection of only the wireless power delivery at Step S904. Thus, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to the on and off states, the initial operation of the wireless power delivery is started. Further, at this Step S905, the control logic circuit 21245 controls the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 to an on state and on the other hand, controls the switch SW3 to an off state. Thus, the supply voltage based on the wireless power delivery from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

When, upon the detection of the power supply voltages at above Step S903, only the supply of the power supply voltage to the supply terminal T2 for the second input voltage 2 is detected, and the supply of the power supply voltage to the supply terminal T1 for the first input voltage 1 is not detected, the process for the automatic selecting operation proceeds to Step S906.

That is, at the next Step S907, the gate drive circuit 21249 sets the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to high and low levels respectively in response to the detection of only the USB power delivery at Step S906. Thus, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to the off and on states, the initial operation of the USB power delivery is started. Further, at this Step S907, the control logic circuit 21245 controls the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 to an off state and on the other hand, controls the switch SW3 to an on state. Thus, the supply voltage based on the USB power delivery from the supply terminal T2 for the second input voltage 2 is used for the charging of the secondary battery 26 through the switch SW3 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

When, upon the detection of the power supply voltages at above Step S903, both of the supply of the power supply voltage to the supply terminal T1 for the first input voltage 1 and the supply of the power supply voltage to the supply terminal T2 for the second input voltage 2 are detected, the process for the automatic selecting operation proceeds to Step S908.

That is, at the next Step S909, in response to the detection of both of the wireless power delivery and the USB power delivery at Step S908, the gate drive circuit 21249 sets the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to low and high levels respectively to give higher priority to the wireless power delivery than the USB power delivery. Accordingly, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to the on and off states, the initial operation of the wireless power delivery is started. Further, at this Step S909, the control logic circuit 21245 controls the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 to an on state and on the other hand, controls the switch SW3 to an off state. Accordingly, the supply voltage based on the wireless power delivery from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3. Thus, the reason why the wireless power delivery is given priority over the USB power delivery at Step S909, is that the current drive capability of the wireless power delivery from the power receiving circuit 2 through the power transmitting side antenna coil 13 and the power receiving side antenna coil 25 is generally higher than that of the USB coupling interface 23.

After the initial operation of the wireless power delivery at Step S905 shown in FIG. 9, a USB power supply voltage from the USB coupling interface 23 to the supply terminal T2 for the second input voltage 2 is supplied at the next Step S910. As a result, at this Step S910, the detection of the USB power delivery is added after the detection of the wireless power delivery.

At the next Step S911 subsequent to the additional detection of the USB power delivery at Step S910, the gate drive circuit 21249 sets the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to low and high levels respectively to give higher priority to the wireless power delivery than the USB power delivery exactly as with Step S909. Accordingly, at Step S911, the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to an on state and an off state. The continuous operation of the wireless power delivery is therefore started. Further, at this Step S911, the control logic circuit 21245 holds the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 in an on state and on the other hand, holds the switch SW3 in an off state. Accordingly, the supply voltage based on the wireless power delivery from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3. Thus, the reason why the wireless power delivery is given higher priority than the USB power delivery even at Step S911 is that the current drive capability of the wireless power delivery from the power receiving circuit 2 through the power transmitting side antenna coil 13 and the power receiving side antenna coil 25 shown in FIG. 1 is generally higher than that of the USB coupling interface 23.

After the initial operation of the USB power delivery at Step S907 shown in FIG. 9, a power supply voltage based on the wireless power delivery of the power transmitting circuit 1 to the supply terminal T1 for the first input voltage 1 is supplied at the next Step S912. As a result, at this Step S912, the detection of the wireless power delivery is added after the detection of the USB power delivery.

At the next Step S913 subsequent to the additional detection of the wireless power delivery at Step S912, the gate drive circuit 21249 changes the first gate drive output signal Mp1_G from the high to low levels and changes the second gate drive output signal Mp2_G from the low to high levels to give higher priority to the wireless power delivery than the USB power delivery. As a result, at Step S913, the operation of switching from the USB power delivery to the wireless power delivery is executed. At this Step S913, the control logic circuit 21245 changes the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 from the off to on state and on the other hand, changes the switch SW3 from the on to off state. As a result, the supply voltage based on the wireless power delivery from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3. Thus, the reason why the wireless power delivery is given higher priority than the USB power delivery even at Step S913 is that the current drive capability of the wireless power delivery from the power receiving circuit 2 through the power transmitting side antenna coil 13 and the power receiving side antenna coil 25 is generally higher than that of the USB coupling interface 23.

After the initial operation of the wireless power delivery at Step S909 shown in FIG. 9, a USB power supply voltage from the USB coupling interface 23 to the supply terminal T2 for the second input voltage 2 is supplied at the next Step S914. As a result, at this Step S914, the redetection of the USB power delivery is added after the detection of the wireless power delivery.

At the next Step S915 subsequent to the redetection of the USB power delivery at Step S914, the gate drive circuit 21249 sets the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to low and high levels respectively to give higher priority to the wireless power delivery than the USB power delivery exactly as with Step S909. Accordingly, at Step S915, the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to an on state and an off state. The continuous operation of the wireless power delivery is therefore started. Further, at this Step S915, the control logic circuit 21245 holds the switch SW2 lying inside the semiconductor integrated circuit 212 according to the first embodiment shown in FIG. 2 in an on state and on the other hand, holds the switch SW3 in an off state. Accordingly, the supply voltage based on the wireless power delivery from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3. Thus, the reason why the wireless power delivery is given higher priority than the USB power delivery even at Step S911 is that the current drive capability of the wireless power delivery from the power receiving circuit 2 through the power transmitting side antenna coil 13 and the power receiving side antenna coil 25 shown in FIG. 1 is generally higher than that of the USB coupling interface 23.

Further, at Step S916 subsequent to any of Steps S911, S913 and S915 as shown in FIG. 9, the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6 detects that one of the wireless power delivery and the USB power delivery and the other thereof are respectively in a power-shutdown state and a power supply continuation state.

In response to the result of detection at Step S916, at the next Step S917, the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6 performs a system supply via the external terminal SYS (T4) and the charging of the secondary battery 26 via the external terminal BAT (T3), using the power supply based on the other power delivery being placed in the power supply continuation.

Second Embodiment

<<Another automatic selecting operation of used voltage>>

FIG. 10 is a diagram showing the operation of automatically selecting a used power supply out of a plurality of power supplies by the semiconductor integrated circuit 212 according to a second embodiment shown in FIGS. 2 and 4.

The operation of automatically selecting the used power supply from the power supplies according to the second embodiment shown in FIG. 9 has an advantage that the operation can approximately perfectly be carried out inside the semiconductor integrated circuit 212 according to the second embodiment shown in FIGS. 2 and 4, but on the other hand has a problem that the degree of freedom of the automatic selection is low. That is, battery-operated cellular electronic devices such as a multifunction cellular phone, a tablet PC, etc. need to improve the degree of freedom of the operation of automatic selection of the used power supply from the power supplies for the purpose of coping with user's various ideas.

The operation of automatic selection of the used power supply from the power supplies according to the second embodiment shown in FIG. 10 is capable of improving the degree of freedom by a program to the non-volatile memory or the like of the power receiving side system 3 coupled to the semiconductor integrated circuit 212 according to the second embodiment shown in FIGS. 2 and 4. That is, since the non-volatile memory such as the flash memory or the like is coupled to the application processor and the baseband processor of the power receiving side system 3, the degree of freedom of the operation of automatic selection of a used power supply from a plurality of power supplies can be improved using the non-volatile memory.

Since the contents of operations at respective steps from Steps S900 through S914 shown in FIG. 10 according to the second embodiment are exactly the same as the contents of the operations at the respective steps from Steps S900 through S914 described in FIG. 8 according to the first embodiment, their description will omitted.

After the additional detection of the USB power delivery at Step S910 shown in FIG. 10, at the next Step S1000, information about the additional detection of the USB power delivery at this Step S910 is notified from the semiconductor integrated circuit 212 to the application processor and baseband processor of the power receiving side system 3 through the external interface 2125.

At the next Step S1001 after the notification to the power receiving side system 3 at Step S1000, indication information indicative of the presence or absence of switching between the USB power delivery and the wireless power delivery is outputted from the application processor or the baseband processor or the like of the power receiving side system 3.

When the indication information indicative of the switching from the wireless power delivery to the USB power delivery is outputted at Step S1001, the gate drive circuit 21249 sets a first gate drive output signal Mp1_G and a second gate drive output signal Mp2_G to high and low levels respectively at the next Step S1002. Accordingly, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to an off state and an on state, the operation of switching from the wireless power delivery to the USB power delivery is performed. Further, at this Step S1002, the control logic circuit 21245 changes the switch SW2 lying inside the semiconductor integrated circuit 212 according to the second embodiment shown in FIG. 2 from an on state to an off state and on the other hand, changes the switch SW3 from an off state to an on state. Accordingly, the supply voltage based on the USB power delivery from the supply terminal T2 for the second input voltage 2 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

On the other hand, when non-switching indication information indicative of non-switching from the wireless power delivery to the USB power delivery is outputted at Step S1001, the process for the automatic selecting operation is returned to Step S905, where the gate drive circuit 21249 holds the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G in the low and high levels respectively. Accordingly, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively maintained in an on state and an off state, the initial operation of the wireless power delivery is maintained. Further, at this Step S905, the control logic circuit 21245 maintains the switch SW2 lying inside the semiconductor integrated circuit 212 according to the second embodiment shown in FIG. 2 in an on state and on the other hand, holds the switch SW3 in an off state. Accordingly, the supply voltage based on the wireless power delivery from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

After the additional detection of the wireless power delivery at Step S912 shown in FIG. 10, at the next Step S1003, information about the additional detection of the wireless power delivery at this Step S912 is notified from the semiconductor integrated circuit 212 to the application processor and baseband processor of the power receiving side system 3 through the external interface 2125.

At the next Step S1004 after the notification to the power receiving side system 3 at Step S1003, indication information indicative of the presence or absence of switching between the USB power delivery and the wireless power delivery is outputted from the application processor or the baseband processor or the like of the power receiving side system 3.

When the indication information indicative of the switching from the USB power delivery to the wireless power delivery is outputted at Step S1004, the gate drive circuit 21249 sets the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to low and high levels respectively at the next Step S1005. Accordingly, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to an on state and an off state, the operation of switching from the USB power delivery to the wireless power delivery is performed. Further, at this Step S1005, the control logic circuit 21245 changes the switch SW2 lying inside the semiconductor integrated circuit 212 according to the second embodiment shown in FIG. 2 from an off state to an on state and on the other hand, changes the switch SW3 from an on state to an off state. Accordingly, the supply voltage based on the wireless power delivery from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

On the other hand, when non-switching indication information indicative of non-switching from the USB power delivery to the wireless power delivery is outputted at Step S1004, the process for the automatic selecting operation is returned to Step S907, where the gate drive circuit 21249 holds the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to high and low levels respectively. Accordingly, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively maintained in an off state and an on state, the initial operation of the USB power delivery is maintained. Further, at this Step S907, the control logic circuit 21245 maintains the switch SW2 lying inside the semiconductor integrated circuit 212 according to the second embodiment shown in FIG. 2 in an off state and on the other hand, holds the switch SW3 in an on state. Accordingly, the supply voltage based on the USB power delivery from the supply terminal T2 for the second input voltage 2 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

After the additional detection of the USB power delivery at Step S914 shown in FIG. 10, at the next Step S1006, information about the additional detection of the USB power delivery at this Step S914 is notified from the semiconductor integrated circuit 212 to the application processor and baseband processor of the power receiving side system 3 through the external interface 2125.

At the next Step S1007 after the notification to the power receiving side system 3 at Step S1006, indication information indicative of the presence or absence of switching between the USB power delivery and the wireless power delivery is outputted from the application processor or the baseband processor or the like of the power receiving side system 3.

When the indication information indicative of the switching from the wireless power delivery to the USB power delivery is outputted at Step S1007, the gate drive circuit 21249 sets the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G to high and low levels respectively at the next Step S1008. Accordingly, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively controlled to an off state and an on state, the operation of switching from the wireless power delivery to the USB power delivery is performed. Further, at this Step S1008, the control logic circuit 21245 changes the switch SW2 lying inside the semiconductor integrated circuit 212 according to the second embodiment shown in FIG. 2 from an on state to an off state and on the other hand, changes the switch SW3 from an off state to an on state. Accordingly, the supply voltage based on the USB power delivery from the supply terminal T2 for the second input voltage 2 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

On the other hand, when non-switching indication information indicative of non-switching from the wireless power delivery to the USB power delivery is outputted at Step S1007, the process for the automatic selecting operation is returned to Step S909, where the gate drive circuit 21249 maintains the first gate drive output signal Mp1_G and the second gate drive output signal Mp2_G at low and high levels respectively. Accordingly, since the P channel MOS transistor Mp1 and P channel MOS transistor Mp2 of the input voltage selection switch 21242 are respectively maintained in an on state and an off state, the initial operation of the wireless power delivery is maintained. Further, at this Step S909, the control logic circuit 21245 maintains the switch SW2 lying inside the semiconductor integrated circuit 212 according to the second embodiment shown in FIG. 2 in an on state and on the other hand, holds the switch SW3 in an off state. Accordingly, the supply voltage based on the wireless power delivery from the supply terminal T1 for the first input voltage 1 is used for the charging of the secondary battery 26 through the step-down DC-DC converter 2121, the switch SW2 and the P channel MOS transistor Mp0 and used for the supply of power to the power receiving side system 3.

Further, at Step S1009 subsequent to any of Steps S1002, S1005 and S1008 as shown in FIG. 10, the input voltage detection circuit 2124 according to the second embodiment shown in FIG. 6 detects that one of the wireless power delivery and the USB power delivery and the other thereof are respectively in a power-shutdown state and a power supply continuation state.

In response to the result of detection at Step S1009, at the next Step S1010, the input voltage detection circuit 2124 according to the first embodiment shown in FIG. 6 performs a system supply via the external terminal SYS (T4) and the charging of the secondary battery 26 via the external terminal BAT (T3), using the power supply based on the other power delivery being placed in the power supply continuation.

Although the invention made above by the present inventors has been described specifically on the basis of various embodiments, the present invention is not limited to the embodiments referred to above. It is needless to say that various changes can be made thereto within the scope not departing from the gist thereof.

For example, electronic devices each equipped with the present semiconductor integrated circuit are not limited to portable personal computers like a multifunction cellular phone, a tablet PC and the like, but can be applied to a digital video camera, a digital still camera, a portable music player, a portable DVD player, etc.

Further, the electronic devices each equipped with the present semiconductor integrated circuit are applicable to cellular phones having functions of an automatic ticket system, e-cash and the like in having an RFID card built-in. 

What is claimed is:
 1. A semiconductor integrated circuit comprising: a first supply terminal capable of supplying a first power supply voltage; a second supply terminal capable of supplying a second power supply voltage; an input voltage selection circuit coupled to the first supply terminal and the second supply terminal; a first power supply switch; and a second power supply switch, wherein the input voltage selection circuit includes a power-on reset circuit, an input voltage detection circuit, a control circuit and a power-on reset auxiliary circuit, wherein when the input voltage detection circuit detects the supply of either of the first and second power supply voltages to either of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, the control circuit responsive to the detection thereof controls either of the first and second power supply switches, corresponding to the supply terminal at which said supply has been detected, to an on state, wherein when the input voltage detection circuit detects the supply of both of the first and second power supply voltages to both of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, the control circuit responsive to the detection thereof controls either of the first and second power supply switches, having a high priority of priorities set in advance, to an on state, wherein after the power supply switch having the high priority has been controlled to the on state, the power-on reset auxiliary circuit detects a power failure in the power supply voltage supplied to the power supply switch having the high priority, of the first and second power supply voltages, wherein the power-on reset circuit performs another power on reset operation in response to a result of detection of the power failure by the power-on reset auxiliary circuit, and wherein at the end of said another power on reset operation of the power-on reset circuit, the control circuit controls either of the first and second power supply switches, having a low priority of the priorities set in advance, to an on state, wherein the power-on reset circuit generates a power on reset signal in response to the supply of the first power supply voltage to the first supply terminal and the supply of the second power supply voltage to the second supply terminal, wherein the input voltage detection circuit generates a first voltage detection output signal in response to the supply of the first power supply voltage to the first supply terminal, and the input voltage detection circuit generates a second voltage detection output signal in response to the supply of the second power supply voltage to the second supply terminal, wherein the control circuit controls the first power supply switch and the second power supply switch in response to the power on reset signal, the first voltage detection output signal and the second voltage detection output signal, wherein at a timing of a change in the level of the power on reset signal responsive to the end of a power on reset operation of the power-on reset circuit, the input voltage detection circuit detects the supply of the first power supply voltage to the first supply terminal and the supply of the second power supply voltage to the second supply terminal, wherein in a first case where at the timing of the change in the level of the power on reset signal, the input voltage detection circuit detects the supply of the first power supply voltage to the first supply terminal but does not detect the supply of the second power supply voltage to the second supply terminal, the control circuit controls the first power supply switch and the second power supply switch to an on state and an off state respectively after the end of the power on reset operation, wherein the first power supply switch controlled to the on state supplies the first power supply voltage supplied to the first supply terminal to a load by the control of the first power supply switch and the second power supply switch to the on state and the off state respectively after the end of the power on reset operation, wherein in a second case where at the timing of the change in the level of the power on reset signal, the input voltage detection circuit detects the supply of the second power supply voltage to the second supply terminal but does not detect the supply of the first power supply voltage to the first supply terminal, the control circuit controls the first power supply switch and the second power supply switch to an off state and an on state respectively after the end of the power on reset operation, wherein the second power supply switch controlled to the on state supplies the second power supply voltage supplied to the second supply terminal to the load by the control of the first power supply switch and the second power supply switch to the off state and the on state respectively after the end of the power on reset operation, wherein in a third case where at the timing of the change in the level of the power on reset signal, the input voltage detection circuit detects the supply of the first power supply voltage to the first supply terminal and the supply of the second power supply voltage to the second supply terminal, the control circuit controls one of the first power supply switch and the second power supply switch and the other thereof to an on state and an off state respectively after the end of the power on reset operation, wherein in the third case, the one of the first power supply switch and the second power supply switch and the other thereof are respectively controlled to the on state and the off state in accordance with the order of precedence set to the control circuit in advance, and wherein the one thereof controlled to the on state, corresponding to the power supply switch having the high priority supplies the first power supply voltage supplied to the first supply terminal or the second power supply voltage supplied to the second supply terminal to the load.
 2. The semiconductor integrated circuit according to claim 1, wherein the power-on reset auxiliary circuit includes first and second reference voltage generators, first and second differential amplifiers and first and second N channel MOS transistors, wherein the second power supply voltage supplied to the second supply terminal is supplied to the first reference voltage generator and the first differential amplifier as an operating power supply voltage, a first reference voltage generated from the first reference voltage generator is supplied to a non-inversion input terminal of the first differential amplifier, and an inversion input terminal of the first differential amplifier is responsive to the first power supply voltage supplied to the first supply terminal, wherein a gate of the first N channel MOS transistor is driven by an output signal of the first differential amplifier, and a source and drain of the first N channel MOS transistor are coupled to a ground potential and the power-on reset circuit respectively, wherein the first power supply voltage supplied to the first supply terminal is supplied to the second reference voltage generator and the second differential amplifier as an operating power supply voltage, a second reference voltage generated from the second reference voltage generator is supplied to a non-inversion input terminal of the second differential amplifier, and an inversion input terminal of the second differential amplifier is responsive to the second power supply voltage supplied to the second supply terminal, wherein a gate of the second N channel MOS transistor is driven by an output signal of the second differential amplifier, and a source and drain of the second N channel MOS transistor are coupled to the ground potential and the power-on reset circuit respectively, wherein in response to a reduction in the first power supply voltage due to a power failure in the first power supply voltage supplied to the first supply terminal in a state in which the second power supply voltage of the second supply terminal is supplied to the first reference voltage generator and the first differential amplifier as the operating power supply voltage, the output signal of the first differential amplifier controls the first N channel MOS transistor from an off state to an on state, wherein in response to the control of the first N channel MOS transistor to the on state with the power failure in the first power supply voltage supplied to the first supply terminal, the power-on reset circuit performs another power on reset operation, wherein in response to a reduction in the second power supply voltage due to a power failure in the second power supply voltage supplied to the second supply terminal in a state in which the first power supply voltage of the first supply terminal is supplied to the second reference voltage generator and the second differential amplifier as the operating power supply voltage, the output signal of the second differential amplifier controls the second N channel MOS transistor from an off state to an on state, and wherein in response to the control of the second N channel MOS transistor to the on state with the power failure in the second power supply voltage supplied to the second supply terminal, the power-on reset circuit performs another power on reset operation.
 3. The semiconductor integrated circuit according to claim 2, further including a first external output terminal and a second external output terminal which supply the first power supply voltage or the second power supply voltage to a first external load and a second external load taken as the load respectively; and furthermore including an output P channel MOS transistor coupled between the first external output terminal and the second external output terminal, wherein when either of the first power supply switch and the second power supply switch is controlled to an on state after the end of the power on reset operation, the output P channel MOS transistor is controlled to an on state by the control circuit, and wherein the control of the output P channel MOS transistor to the on state enables the first power supply voltage or the second power supply voltage to be supplied to the second external load through the output P channel MOS transistor and the second external output terminal.
 4. The semiconductor integrated circuit according to claim 3, wherein the first external output terminal is configured so as to be capable of supplying the first power supply voltage or the second power supply voltage to the first external load corresponding to another semiconductor integrated circuit taken as an active device, and wherein the output P channel MOS transistor and the second external output terminal are configured so as to be capable of supplying the first power supply voltage or the second power supply voltage to the second external load taken as a battery.
 5. The semiconductor integrated circuit according to claim 2, wherein the input voltage selection circuit further includes an input voltage selection switch and a gate drive circuit, wherein the input voltage selection switch includes a first input P channel MOS transistor and a second input P channel MOS transistor, the first input P channel MOS transistor having a source coupled to the first supply terminal and the second input P channel MOS transistor having a source coupled to the second supply terminal, wherein during a power on reset period of the power-on reset circuit, the gate drive circuit controls both of the first and second input P channel MOS transistors of the input voltage selection switch to an on state, and wherein during the power on reset period, an operating voltage to be supplied to the power-on reset circuit is generated from a drain of the first input P channel MOS transistor or a drain of the second input P channel MOS transistor.
 6. The semiconductor integrated circuit according to claim 5, wherein in the first case, the gate drive circuit controls the first and second input P channel MOS transistors of the input voltage selection switch to an on state and an off state respectively, wherein in the second case, the gate drive circuit controls the first and second input P channel MOS transistors of the input voltage selection switch to an off state and an on state respectively, and wherein in the third case, the gate drive circuit controls one of the first and second input P channel MOS transistors of the input voltage selection switch and the other thereof to an on state and an off state respectively in accordance with the order of precedence set to the control circuit in advance.
 7. The semiconductor integrated circuit according to claim 6, wherein the input voltage selection circuit further includes a voltage comparison/selection circuit having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal of the voltage comparison/selection circuit is coupled to the drain of the first input P channel MOS transistor of the input voltage selection switch, wherein the second input terminal of the voltage comparison/selection circuit is coupled to the drain of the second input P channel MOS transistor of the input voltage selection switch, wherein the operating voltage supplied to the power-on reset circuit is generated from the output terminal of the voltage comparison/selection circuit, and wherein the voltage comparison/selection circuit compares a voltage of the first input terminal and a voltage of the second input terminal to select a high voltage and thereby outputs the high voltage as the operating voltage supplied from the output terminal to the power-on reset circuit.
 8. The semiconductor integrated circuit according to claim 2, wherein with the occurrence of the first case, a fourth case in which the input voltage detection circuit detects the supply of the second power supply voltage to the second supply terminal occurs after the first and second power supply switches are respectively controlled to the on state and the off state after the end of the power on reset operation, wherein in response to the occurrence of the fourth case, the control circuit controls the one of the first power supply switch and the second power supply switch and the other thereof to the on state and the off state respectively in accordance with the order of precedence set to the control circuit in advance, as with the third case, wherein with the occurrence of the second case, a fifth case in which the input voltage detection circuit detects the supply of the first power supply voltage to the first supply terminal occurs after the first and second power supply switches are respectively controlled to the off state and the on state after the end of the power on reset operation, wherein in response to the occurrence of the fifth case, the control circuit controls the one of the first power supply switch and the second power supply switch and the other thereof to the on state and the off state respectively in accordance with the order of precedence set to the control circuit in advance, as with the third case, wherein with the occurrence of the third case, a sixth case in which the input voltage detection circuit detects the supply of the second power supply voltage to the second supply terminal occurs after the one of the first and second power supply switches and the other thereof are respectively controlled to the on state and the off state after the end of the power on reset operation, and wherein in response to the occurrence of the sixth case, the control circuit controls the one of the first power supply switch and the second power supply switch and the other thereof to the on state and the off state respectively in accordance with the order of precedence set to the control circuit in advance, as with the third case.
 9. The semiconductor integrated circuit according to claim 2, wherein with the occurrence of the first case, a fourth case in which the input voltage detection circuit detects the supply of the second power supply voltage to the second supply terminal occurs after the first and second power supply switches are respectively controlled to the on state and the off state after the end of the power on reset operation, wherein in response to the occurrence of the fourth case, the semiconductor integrated circuit is capable of notifying the occurrence of the fourth case to said another semiconductor integrated circuit taken as the first external load, wherein in response to a first notice indicative of the occurrence of the fourth case, the control circuit controls the first power supply switch and the second power supply switch in accordance with a first indication supplied from said another semiconductor integrated circuit to the semiconductor integrated circuit, wherein in accordance with the first indication, the control circuit controls the first power supply switch and the second power supply switch to an on state and an off state respectively or controls the first power supply switch and the second power supply switch to an off state and an on state respectively, wherein with the occurrence of the second case, a fifth case in which the input voltage detection circuit detects the supply of the first power supply voltage to the first supply terminal occurs after the first and second power supply switches are respectively controlled to the off state and the on state after the end of the power on reset operation, wherein in response to the occurrence of the fifth case, the semiconductor integrated circuit is capable of notifying the occurrence of the fifth case to said another semiconductor integrated circuit taken as the first external load, wherein in response to a second notice indicative of the occurrence of the fifth case, the control circuit controls the first power supply switch and the second power supply switch in accordance with a second indication supplied from said another semiconductor integrated circuit to the semiconductor integrated circuit, wherein in accordance with the second indication, the control circuit controls the first power supply switch and the second power supply switch to an off state and an on state respectively or controls the first power supply switch and the second power supply switch to an on state and an off state respectively, wherein with the occurrence of the third case, a sixth case in which the input voltage detection circuit detects the supply of the second power supply voltage to the second supply terminal occurs after the one of the first and second power supply switches and the other thereof are respectively controlled to the on state and the off state after the end of the power on reset operation, wherein in response to the occurrence of the sixth case, the semiconductor integrated circuit is capable of notifying the occurrence of the sixth case to said another semiconductor integrated circuit taken as the first external load, wherein in response to a third notice indicative of the occurrence of the sixth case, the control circuit controls the first power supply switch and the second power supply switch in accordance with a third indication supplied from said another semiconductor integrated circuit to the semiconductor integrated circuit, and wherein in accordance with the third indication, the control circuit controls the first power supply switch and the second power supply switch to an on state and an off state respectively or controls the first power supply switch and the second power supply switch to an off state and an on state respectively.
 10. The semiconductor integrated circuit according to claim 2, further including a step-down DC-DC converter and a linear regulator coupled in parallel between the first supply terminal and the first power supply switch, wherein the linear regulator operates as a series regulator which quickly operates immediately after power-on based on the supply of the first power supply voltage to the first supply terminal and wherein the step-down DC-DC converter operates as a switching regulator having power efficiency higher than the linear regulator.
 11. The semiconductor integrated circuit according to claim 10, wherein the first supply terminal is configured so as to be capable of supplying a power supply voltage based on a wireless power delivery to the first supply terminal through a first Schottky diode and an AC-DC conversion power supply voltage of an AC power supply coupling interface thereto through a second Schottky diode, and wherein the second supply terminal is configured so as to be capable of supplying a USB power supply voltage of a USB coupling interface to the second supply terminal.
 12. An operating method of a semiconductor integrated circuit equipped with a first supply terminal capable of supplying a first power supply voltage, a second supply terminal capable of supplying a second power supply voltage, an input voltage selection circuit coupled to the first supply terminal and the second supply terminal, a first power supply switch, and a second power supply switch, the operating method comprising: causing the input voltage selection circuit to have a power-on reset circuit, an input voltage detection circuit, a control circuit and a power-on reset auxiliary circuit; when the input voltage detection circuit detects the supply of either of the first and second power supply voltages to either of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, controlling either of the first and second power supply switches, corresponding to the supply terminal at which said supply has been detected, to an on state by the control circuit responsive to the detection thereof; when the input voltage detection circuit detects the supply of both of the first and second power supply voltages to both of the first and second supply terminals at the end of a power on reset operation of the power-on reset circuit, controlling either of the first and second power supply switches, having a high priority of priorities set in advance, to an on state by the control circuit responsive to the detection thereof; after the power supply switch having the high priority has been controlled to the on state, detecting a power failure in the power supply voltage supplied to the power supply switch having the high priority by the power-on reset auxiliary circuit; performing by the power-on reset circuit, another power on reset operation in response to a result of detection of the power failure by the power-on reset auxiliary circuit; controlling either of the first and second power supply switches, having a low priority of the priorities set in advance, to an on state by the control circuit at the end of said another power on reset operation of the power-on reset circuit; generating a power on reset signal in response to the supply of the first power supply voltage to the first supply terminal and the supply of the second power supply voltage to the second supply terminal by the power-on reset circuit; generating a first voltage detection output signal in response to the supply of the first power supply voltage to the first supply terminal by the input voltage detection circuit, and generating a second voltage detection output signal in response to the supply of the second power supply voltage to the second supply terminal by the input voltage detection circuit; controlling the first power supply switch and the second power supply switch in response to the power on reset signal, the first voltage detection output signal and the second voltage detection output signal by the control circuit; detecting the supply of the first power supply voltage to the first supply terminal and the supply of the second power supply voltage to the second supply terminal by the input voltage detection circuit at a timing of a change in the level of the power on reset signal responsive to the end of a power on reset operation of the power-on reset circuit; in a first case where at the timing of the change in the level of the power on reset signal, the input voltage detection circuit detects the supply of the first power supply voltage to the first supply terminal but does not detect the supply of the second power supply voltage to the second supply terminal, controlling the first power supply switch and the second power supply switch to an on state and an off state respectively after the end of the power on reset operation by the control circuit; controlling the first power supply switch and the second power supply switch to the on state and the off state respectively after the end of the power on reset operation to thereby allow the first power supply switch controlled to the on state to supply the first power supply voltage supplied to the first supply terminal to a load; in a second case where at the timing of the change in the level of the power on reset signal, the input voltage detection circuit detects the supply of the second power supply voltage to the second supply terminal but does not detect the supply of the first power supply voltage to the first supply terminal, controlling the first power supply switch and the second power supply switch to an off state and an on state respectively after the end of the power on reset operation by the control circuit; controlling the first power supply switch and the second power supply switch to the off state and the on state respectively after the end of the power on reset operation to thereby allow the second power supply switch controlled to the on state to supply the second power supply voltage supplied to the second supply terminal to the load; in a third case where at the timing of the change in the level of the power on reset signal, the input voltage detection circuit detects the supply of the first power supply voltage to the first supply terminal and the supply of the second power supply voltage to the second supply terminal, controlling one of the first power supply switch and the second power supply switch and the other thereof to an on state and an off state respectively after the end of the power on reset operation by the control circuit; controlling, in the third case, the one of the first power supply switch and the second power supply switch and the other thereof to the on state and the off state respectively in accordance with the order of precedence set to the control circuit in advance; and causing the one thereof controlled to the on state, corresponding to the power supply switch having the high priority to supply the first power supply voltage supplied to the first supply terminal or the second power supply voltage supplied to the second supply terminal to the load.
 13. The operating method according to claim 12, comprising: causing the power-on reset auxiliary circuit to have first and second reference voltage generators, first and second differential amplifiers and first and second N channel MOS transistors; supplying the second power supply voltage supplied to the second supply terminal to the first reference voltage generator and the first differential amplifier as an operating power supply voltage, supplying a first reference voltage generated from the first reference voltage generator to a non-inversion input terminal of the first differential amplifier, and causing an inversion input terminal of the first differential amplifier to respond to the first power supply voltage supplied to the first supply terminal; driving a gate of the first N channel MOS transistor by an output signal of the first differential amplifier and coupling a source and drain of the first N channel MOS transistor to a ground potential and the power-on reset circuit respectively; supplying the first power supply voltage supplied to the first supply terminal to the second reference voltage generator and the second differential amplifier as an operating power supply voltage, supplying a second reference voltage generated from the second reference voltage generator to a non-inversion input terminal of the second differential amplifier, and causing an inversion input terminal of the second differential amplifier to respond to the second power supply voltage supplied to the second supply terminal; driving a gate of the second N channel MOS transistor by an output signal of the second differential amplifier and coupling a source and drain of the second N channel MOS transistor to the ground potential and the power-on reset circuit respectively; in response to a reduction in the first power supply voltage due to a power failure in the first power supply voltage supplied to the first supply terminal in a state in which the second power supply voltage of the second supply terminal is supplied to the first reference voltage generator and the first differential amplifier as the operating power supply voltage, controlling the first N channel MOS transistor from an off state to an on state by the output signal of the first differential amplifier; in response to the control of the first N channel MOS transistor to the on state with the power failure in the first power supply voltage supplied to the first supply terminal, causing the power-on reset circuit to perform another power on reset operation; in response to a reduction in the second power supply voltage due to a power failure in the second power supply voltage supplied to the second supply terminal in a state in which the first power supply voltage of the first supply terminal is supplied to the second reference voltage generator and the second differential amplifier as the operating power supply voltage, controlling the second N channel MOS transistor from an off state to an on state by the output signal of the second differential amplifier; and in response to the control of the second N channel MOS transistor to the on state with the power failure in the second power supply voltage supplied to the second supply terminal, causing the power-on reset circuit to perform another power on reset operation.
 14. The operating method according to claim 13, comprising: causing the semiconductor integrated circuit to further have a first external output terminal and a second external output terminal which supply the first power supply voltage or the second power supply voltage to a first external load and a second external load taken as the load respectively; causing the semiconductor integrated circuit to furthermore have an output P channel MOS transistor coupled between the first external output terminal and the second external output terminal; when either of the first power supply switch and the second power supply switch is controlled to an on state after the end of the power on reset operation, controlling the output P channel MOS transistor to an on state by the control circuit; and controlling the output P channel MOS transistor to the on state to thereby enable the first power supply voltage or the second power supply voltage to be supplied to the second external load through the output P channel MOS transistor and the second external output terminal.
 15. The operating method according to claim 14, comprising: enabling the first external output terminal to supply the first power supply voltage or the second power supply voltage to the first external load corresponding to another semiconductor integrated circuit taken as an active device; and enabling the output P channel MOS transistor and the second external output terminal to supply the first power supply voltage or the second power supply voltage to the second external load taken as a battery.
 16. The operating method according to claim 13, comprising: causing the input voltage selection circuit to further have an input voltage selection switch and a gate drive circuit; causing the input voltage selection switch to have a first input P channel MOS transistor having a source coupled to the first supply terminal, and a second input P channel MOS transistor having a source coupled to the second supply terminal; controlling both of the first and second input P channel MOS transistors of the input voltage selection switch to an on state by the gate drive circuit during a power on reset period of the power-on reset circuit; and generating an operating voltage supplied to the power-on reset circuit from a drain of the first input P channel MOS transistor or a drain of the second input P channel MOS transistor during the power on reset period.
 17. The operating method according to claim 16, comprising: controlling the first and second input P channel MOS transistors of the input voltage selection switch to an on state and an off state respectively by the gate drive circuit in the first case; controlling the first and second input P channel MOS transistors of the input voltage selection switch to an off state and an on state respectively by the gate drive circuit in the second case; and controlling one of the first and second input P channel MOS transistors of the input voltage selection switch and the other thereof to an on state and an off state respectively by the gate drive circuit in accordance with the order of precedence set to the control circuit in advance in the third case.
 18. The operating method according to claim 17, comprising: causing the input voltage selection circuit to further have a voltage comparison/selection circuit having a first input terminal, a second input terminal and an output terminal; coupling the first input terminal of the voltage comparison/selection circuit to the drain of the first input P channel MOS transistor of the input voltage selection switch; coupling the second input terminal of the voltage comparison/selection circuit to the drain of the second input P channel MOS transistor of the input voltage selection switch; generating the operating voltage supplied to the power-on reset circuit from the output terminal of the voltage comparison/selection circuit; and comparing a voltage of the first input terminal and a voltage of the second input terminal by the voltage comparison/selection circuit to select a high voltage and thereby outputting the high voltage as the operating voltage supplied from the output terminal to the power-on reset circuit.
 19. An operating method of a semiconductor integrated circuit comprising: first and second power supply terminals; first and second power supply switches corresponding to the first and second power supply terminals, respectively; and an input voltage selection circuit coupled to the first and second power supply terminals and comprising: a power-on reset circuit; an input voltage detection circuit; a control circuit configured to control the first and second power supply switches; and a power-on reset auxiliary circuit; the operating method of the semiconductor integrated circuit comprising: (a) detecting by the input voltage detection circuit whether power is supplied to both the first and second power supply terminals; (b) in response to detecting in (a) that both the first and second power supply terminals have power supplied thereto, controlling the first power supply switch, which has a predetermined higher priority than the second power supply switch, to an on state at an end of a power-on reset operation of the power-on reset circuit; (c) after said controlling in (b), detecting by the power-on reset auxiliary circuit a power failure in the power supplied to the first supply terminal; (d) in response to detecting the power failure in (c), performing another power-on reset operation of the power-on reset circuit; and (e) controlling the second power supply switch to an on state at an end of the another power-on reset operation, wherein the detecting in (a) comprises: (a1) generating a power-on reset signal by the power-on reset circuit in response to power being supplied to either of the first and second power supply terminals; and (a2) generating first and second voltage detection output signals by the input voltage detection circuit in response to power being supplied to the first and second power supply terminals, respectively; wherein the controlling in (b) is responsive to the power-on reset signal and the first and second voltage detection output signals and comprises: (b1) controlling the first power supply switch to an on state and the second power supply switch to an off state, such that power from the first power supply terminal is supplied to a load, wherein the controlling in (e) is responsive to a reset signal for the another power-on reset operation and comprises: (e1) controlling the second power supply switch to an on state and the first power supply switch to an off state, such that power from the second power supply terminal is supplied to the load.
 20. The operating method according to claim 19, wherein: one of the first and second supply terminals comprises a USB coupling interface, and the other of the first and second supply terminals comprises a wireless power interface or an AC power interface. 